Upload

The

Upload Media
endpoint is used to upload media to the Oxolo platform. This is primarily used in conjunction with the Create endpoints to provide media assets for videos. To use this endpoint, you must provide a media file and its type in a multipart/form-data request. The request should be sent as a
POST
request to the
/v1/api/assets/media/request
endpoint, with the necessary authorization and content-type headers included.

HTTP Request

POST https://api.oxolo.com/v1/api/assets/media/request

curl -X 'POST' 
'https://api.oxolo.com/v1/api/assets/media/request' 
-H 'accept: application/json' 
-H 'authorization: YOUR_API_KEY' 
-H 'content-type: multipart/form-data' 
-F 'media_type=IMAGE' 
-F 'file=@image.png;type=image/png'

{"results": "{MEDIA_IDENTIFIER}"}