Update subtitles of VOD
PUThttps://api.one.blendvision.com/bv/cms/v1/vods/:id/subtitles
Modifies the subtitles of a VOD resource with the specified subtitle file.
Required field(s):
id
Request
Path Parameters
Required. The unique id of the VOD resource.
Header Parameters
To invoke this API using api_token
, you need to set the x-bv-org-id
header to specify the organization for which you want to perform the action.
- application/json
Body
required
subtitles object[]
stt_subtitles object[]
Responses
- 200
- 400
- 401
- 403
- 500
- default
A successful response.
- application/json
- Schema
- Example (from schema)
Schema
object
{}
A bad request response.
The code
is 3
means got an invalid argument. There are more HTTP status code mappings listed on here and gRPC code on here.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A unauthenticated response.
The header authorization
was missing or unidentified.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A forbidden response.
It means that the provided authorization
did not have enough permission to access the resource or the API.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
A server error response. There are more HTTP status code mappings listed on here.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
An unexpected error response.
- application/json
- Schema
- Example (from schema)
Schema
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
Authorization: authorization
name: authorizationtype: apiKeydescription: Enter the token with Bearer schema prefix, eg. `Bearer <token-string>`in: header
- curl
- python
- go
- nodejs
- php
- CURL
curl -L -X PUT 'https://api.one.blendvision.com/bv/cms/v1/vods/:id/subtitles' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'authorization: <API_KEY_VALUE>' \
-d '{
"stt_subtitles": [
{
"display": "English",
"lang_code": "en",
"track_no": "0"
}
],
"subtitles": [
{
"code": "en",
"display": "English",
"id": "34386ef5-209e-453f-93c7-6f48a24ad38c",
"name": "english.srt"
},
{
"code": "zh",
"display": "Chinese",
"id": "daedaa0c-6250-4637-965e-c70c24568c73",
"name": "chinese.vtt"
}
]
}'