Update a caption file
Code | Description |
---|---|
401 | Unauthorized: auth_token omitted or authentication failed |
403 | Forbidden: This action cannot be performed |
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 |
404 | Not Found: The requested resource could not be found |
400 | Bad Request: body has wrong syntax or unable to handle request |
REQUEST Content-Type: application/json caption_file: { language: "fr" } RESPONSE 200 { "language": "fr" }
Param name | Description |
---|---|
auth_token optional |
API token needed to authorize requests Validations:
|
caption optional |
Validations:
|
caption[language] optional |
Language code Validations:
|
caption[content] optional |
VTT content Validations:
|
caption[error_message] optional |
Set error message of caption Validations:
|
caption[is_default] optional |
Set the default caption for the video Validations:
|
caption[vtt_url] optional |
VTT URL Validations:
|
caption[creator_type] optional |
Type of caption Validations:
|