Creating VideoAsset
POST /api/v1/video_assets/
Parameters
| Name |
Description |
|
id
|
id
|
|
file
|
filepicker data
|
|
thumbnail_url
|
url of a thumbnail
|
Request
Headers
Route
POST /api/v1/video_assets/
Body
{"id":6,"file":{"url":"http://www.example.com/video.mp4"},"thumbnail_url":"http://www.example.com/whatever.jpg"}
cURL
curl "http://localhost:3000/api/v1/video_assets/" -d '{"id":6,"file":{"url":"http://www.example.com/video.mp4"},"thumbnail_url":"http://www.example.com/whatever.jpg"}' -X POST \
-H "Accept: application/json" \
-H "X-Api-Token: nsCWUQPxfLezNd_yTbL4WzbusA6c3zmvXw" \
-H "X-Api-Email: user-118@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
201 Created
Body
{
"id": 7,
"school_id": 587,
"host": "wistia",
"host_id": null,
"file_extension": null,
"file": {
"url": "http://www.example.com/video.mp4"
},
"meta": {
},
"url": null,
"thumbnail_url": "http://www.example.com/whatever.jpg",
"file_name": null,
"content_type": null,
"duration": null,
"mp4_file_size": null,
"created_at": "2019-10-31T22:08:23Z",
"updated_at": "2019-10-31T22:08:23Z"
}