Skip to main content
POST
/
video
/
{id}
/
captions
cURL
curl --request POST \
  --url https://api.pnplayer.com/v1/api/video/{id}/captions \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file' \
  --form 'srclang=<string>' \
  --form 'label=<string>'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of video to upload captions for

Body

multipart/form-data
file
file
required

Caption file to upload

srclang
string
required

Source language of the captions

label
string
required

Label for the captions

Response

Video response with captions uploaded

message
string