json (application/json)
PUT
<webId>
|
|---|
Authorization: Basic base64(username:password)
Content-Type: multipart/form-data
Same body as POST:
video = the mp4 file, max 20 MB (required)
note = any metadata you want to keep with the video, plain text (optional)
curl -u user:password -X PUT -F "video=@520460376.mp4" \
https://api.autoesa.cz/v1/car-videos/520460376
The raw file can also be sent as the request body with
Content-Type: video/mp4, the note then goes into the ?note= query parameter.
200 (Video updated)
400 (Bad Request)
401 (Invalid authentication)
404 (Car with web id 520460376 doesn't exist)
413 (Video is too large)
415 (Only mp4 videos are accepted)
{
"status": "ok",
"message": "Video updated.",
"web_id": 520460376,
"url": "https:\/\/www.autoesa.cz\/files\/car-videos\/520460376-1d9be7c530.mp4"
}