...
Code Block | ||
---|---|---|
| ||
curl -X POST \ https://admin-video.springserve.com/api/v0/videos/ \ -H 'Authorization: 23aoeaoe32p08<authorizationToken>' \ -H 'Cache-Control: no-cache' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \ -F 'video=@/<filepath>/videofile.mp4' -F 'demand_parnter_id="<demand_parnter_id>"' |
Status code 201
Response (example)
Code Block |
---|
{ "id": 1832<id>, "account_id": 1<account_id>, "name": "videofile.mp4", "height": 1080, "width": 1920, "duration_seconds": 14, "video_file_name": "VIDEO FILE API DOCS", "video_content_type": "video/mp4", "video_file_size": 6737024, "video_updated_at": "2018-08-20T21:25:27.235Z", "video_remote_url": null } |
...
{
"name": "VIDEO Demand Tag",
"video_id": 1832<id>,
"video_landing_page_url": "https://mylandingpage.com"
"demand_class": 4
}