cURL
curl --request PUT \ --url https://api-next.ofauth.com/v2/access/uploads/:mediaUploadId \ --header 'apiKey: <api-key>' \ --header 'x-connection-id: <api-key>'
{ "mediaUploadId": "<string>", "media": { "id": 123, "type": "photo", "convertedToVideo": true, "canView": true, "hasError": true, "createdAt": "<string>", "isReady": true, "releaseForms": [ { "id": 123, "name": "<string>", "partnerSource": "<string>", "type": "<string>", "user": { "view": "<string>", "id": 123, "name": "<string>", "username": "<string>", "isVerified": true, "avatar": "<string>", "avatarThumbs": { "c50": "<string>", "c144": "<string>" }, "ivStatus": "<string>", "isFromGuest": true } } ], "duration": 123, "hasCustomPreview": true, "videoSources": { "240": "<string>", "720": "<string>" }, "files": { "full": { "url": "<string>", "sources": [ { "url": "<string>", "width": 123, "height": 123, "type": "<string>" } ], "width": 123, "height": 123, "size": 123 }, "thumb": { "url": "<string>", "width": 123, "height": 123, "size": 123 }, "preview": { "url": "<string>", "options": [ { "url": "<string>", "width": 123, "height": 123, "type": "<string>" } ], "width": 123, "height": 123, "size": 123 }, "squarePreview": { "url": "<string>", "width": 123, "height": 123, "size": 123 } } } }
Upload single-part media and finalize (No need to call /complete after upload if using this endpoint)
Permission Required: vault:write
vault:write
Your OFAuth API key for authenticating requests.
Requires a connection via the x-connection-id header.
Upload session ID
1
Successful response
Show child attributes
Was this page helpful?