PUT - /api/v1/video_assets/:id - Updating
PUT /api/v1/video_assets/:id
Parameters
| Name |
Description |
|
id
|
id
|
|
file
|
filepicker data
|
|
thumbnail_url
|
url of a thumbnail
|
Request
Headers
Route
PUT /api/v1/video_assets/1
Body
{"file":{"url":"https://www.filepicker.io/api/file/4wX6usUbRYWoV0qptCZt","filename":"IMG_1990.MOV","mimetype":"video/quicktime","size":990637,"id":1,"key":"DKvnsx3mSaOLbcdhXo0w_IMG_1990.MOV","container":"lecture_attachments","client":"computer","isWriteable":true},"thumbnail_url":"http://www.example.com/whatever.jpg"}
cURL
curl "http://localhost:3000/api/v1/video_assets/1" -d '{"file":{"url":"https://www.filepicker.io/api/file/4wX6usUbRYWoV0qptCZt","filename":"IMG_1990.MOV","mimetype":"video/quicktime","size":990637,"id":1,"key":"DKvnsx3mSaOLbcdhXo0w_IMG_1990.MOV","container":"lecture_attachments","client":"computer","isWriteable":true},"thumbnail_url":"http://www.example.com/whatever.jpg"}' -X PUT \
-H "Accept: application/json" \
-H "X-Api-Token: QKDqVdSEzUyvD5yJLqTKXJNykbsLdReWPQ" \
-H "X-Api-Email: user-108@example.com" \
-H "Content-Type: application/json" \
-H "Host: school.worksonmy.computer"
Response
Headers
Status
202 Accepted
Body
{
"id": 1,
"school_id": 582,
"host": "wistia",
"host_id": null,
"file_extension": null,
"file": {
"id": 1,
"key": "DKvnsx3mSaOLbcdhXo0w_IMG_1990.MOV",
"url": "https://www.filepicker.io/api/file/4wX6usUbRYWoV0qptCZt",
"size": 990637,
"client": "computer",
"filename": "IMG_1990.MOV",
"mimetype": "video/quicktime",
"container": "lecture_attachments",
"isWriteable": true
},
"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:18Z",
"updated_at": "2019-10-31T22:08:18Z"
}