External Media
Create external media
The following curl command is used to generate external media given an URL. The url must point to a VIDEO file or a IMAGE file. This endpoints support the creation of medias simultaneously, so it can received up to 50 different URLs.
The url must end with the extension of the target file, and only image and video files are supported.
curl -X POST "{{BASE-URL}}/api/media/external" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {{YOUR-ACCESS-TOKEN}}" \
-d '{
"medias": [
{
"url": {{EXTERNAL-URL}},
"title": {{TITLE}},
"tags": {
{{KEY}}: {{VALUE}},
...
},
"duration": {{DURATION}},
"creator": {{CREATOR}},
"includeInReport": {{INCLUDE-REPORT}}
}
]
}'
Response example:
{
"content": [
{
"id": "12dbbe11-35a6-4f21-9c72-cfc8bd34abf1",
"url": "http://example.com/media.mp4",
"type": "VIDEO",
"createdDate": "2024-09-13T14:35:46Z",
"title": "Sample Media",
"duration": 120,
"creator": "John Doe"
}
]
}
Last updated