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>" }
Upload captions for a video
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of video to upload captions for
Caption file to upload
Source language of the captions
Label for the captions
Video response with captions uploaded