Add caption
POST/videos/:id/captions/:language
Add caption on a specific video
Request
Path Parameters
id stringrequired
(Required) Id of video
Example: 2346
language stringrequired
(Required) 3-letter language code according to ISO-639-2 (bibliographic code)
Example: eng
Header Parameters
Content-Type stringrequired
Example: multipart/form-data
Accept stringrequired
Example: application/json
- multipart/form-data
Body
ai_generated stringrequired
(Required)
Example:
false
published stringrequired
true|false (languages supported: "eng", "spa", "fre", "ger", "ita", "por", "dut", "hin", "jpn", "chi", "fin", "kor", "pol", "rus", "ukr", "vie")
Example:
true
file binaryrequired
(Required)
Responses
- 200
- 400
- 401
- 404
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
id_video stringrequired
id_caption stringrequired
language stringrequired
language_name stringrequired
vtt stringrequired
vtt_draft stringrequired
state stringrequired
ai_generated stringrequired
published stringrequired
{
"status": "string",
"id_video": "string",
"id_caption": "string",
"language": "string",
"language_name": "string",
"vtt": "string",
"vtt_draft": "string",
"state": "string",
"ai_generated": "string",
"published": "string"
}
OK
{
"status": "<string>",
"id_video": "<string>",
"id_caption": "<string>",
"language": "<string>",
"language_name": "<string>",
"vtt": "<string>",
"vtt_draft": "<string>",
"state": "<string>",
"ai_generated": "<string>",
"published": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
{
"status": "string"
}
Bad Request
{
"status": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
{
"status": "string"
}
Unauthorized
{
"status": "<string>"
}
Response Headers
- application/json
- Schema
- Example (from schema)
- 1
Schema
status stringrequired
{
"status": "string"
}
Not Found
{
"status": "<string>"
}
Loading...