Create a new video
WARNING: Using this endpoint will also automatically create an associated player with player_type equals video_facade. To create a new video, it is recommended that you use the player endpoint to instead create a new player that contains the desired video.
| Code | Description |
|---|---|
| 400 | Bad Request: body has wrong syntax or unable to handle request |
| 401 | Unauthorized: auth_token omitted or authentication failed |
| 403 | Forbidden: This action cannot be performed |
| 404 | Not Found: The requested resource could not be found |
| 406 | Not Acceptable: Accept or Content-Type headers must be application/json, text/csv or application/vnd.openxmlformats-officedocument.spreadsheetml.sheet |
| 422 | Unprocessable Entity: body has wrong attributes |
REQUEST
Content-Type: application/json
{
"name": "My Video",
"upload_url": "http://myvideos.com/video.mp4",
"description": "People hard at work, or hardly working?",
"notes": "This video shows our old logo we should replace it soon...",
"audio_gain": 20,
"webhook_url": "http://callbacktest.herokuapp.com/"
}
RESPONSE
201 (Created)
{
"id": 2222,
"uuid": "4epPofk8TYhIanJLgZyIeA",
"name": "My Video",
"upload_url": "http://myvideos.com/video.mp4",
"description": "People hard at work, or hardly working?",
"notes": "This video shows our old logo we should replace it soon...",
"audio_gain": 20,
"webhook_url": "http://callbacktest.herokuapp.com/",
"sync": true,
"status": "uploaded",
"error_message": null,
"created_at": 1346961610,
"updated_at": 1346961610
}
| Param name | Description |
|---|---|
|
auth_token optional |
API token needed to authorize requests Validations:
|
|
name optional |
Name of the video Validations:
|
|
description optional |
Description to be shown with the video Validations:
|
|
notes optional |
Your notes about the video Validations:
|
|
sync optional |
If this video is pushed to YouTube, we will keep this video’s details in sync anytime you change them on Vidyard Validations:
|
|
approver optional |
Approver email Validations:
|
|
upload_url required |
A valid URL for a media file to upload Validations:
|
|
audio_gain optional |
Specified in dB, up to 60 or down to -60 Validations:
|
|
webhook_url optional |
Webhook URL that we will send details to about this video when it has finished uploading Validations:
|
|
tags_attributes optional |
Advanced feature: Used for embedded tag resource creation Validations:
|
|
cameratag_uuid optional |
CameraTag video UUID Validations:
|