Register an asset and get a presigned upload URL
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/uploads" \ -H "Content-Type: application/json" \ -d '{ "filename": "string", "contentType": "string", "kind": "video" }'{ "asset": { "id": "string", "key": "string", "kind": "video", "filename": "string", "contentType": "string", "size": -9007199254740991, "status": "pending", "uploadedBy": "string", "createdAt": "string" }, "uploadUrl": "string", "method": "PUT", "expiresInSeconds": -9007199254740991, "headers": { "property1": "string", "property2": "string" }}{ "error": "string", "message": "string"}{ "error": "string", "message": "string"}