v1
latestOpenAPI 3.0.02026-07-24212113249.1 KBMedia
Create media
post/medias
Headers
channelstring required
Channel ID
organizationstring required
The URL of the end-user web application
Request body
Example request
{
"filename": "my-video.mp4",
"status": "Uploaded",
"type": "Audio",
"upload": "6185c7b98711e5b2cae511a2",
"duration": 3600,
"width": 1920,
"height": 1080,
"aspectRatio": "16:9",
"orientation": "landscape",
"baseUrl": "https://www.fanhero.com",
"locale": "pt-BR"
}Response
Returns a ResponseMediaOutput object with the metadata for the new media.
Example response
{
"id": "61886612d37f875060b4749c",
"filename": "video.mp4",
"channel": "61883ef40a57a49d87b95643",
"account": "61883ef40a57a49d87b95643",
"type": "Audio",
"status": "Uploaded",
"upload": "61883ef40a57a49d87b95643",
"isAvatar": true,
"duration": 36000,
"width": "1920",
"height": "1080",
"aspectRatio": "16:9",
"orientation": "landscape",
"baseUrl": "https://www.fanhero.com"
}