Skip to main contentIBM Video Streaming Developers

Copy a video

Save part of on existing video as a new video. The new video will be available on the same channel as the original one and it will be unpublished by default.

Create copy

Copy is an async process, you will get a request ID in the response.

POST https://api.video.ibm.com/videos/{video_id}/copy.json

Parameters

The parameters for the POST request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
startintegerREQUIREDCopy video from this second
endintegerREQUIREDCopy video until this second
titlestringREQUIREDTitle of the new video
descriptionstringOPTIONALDescription of the new video.

Minimum copy length is 10 seconds.

Success response

Upon success a response with HTTP status “202 Accepted” is returned with the following key-value pairs.

KEYTYPEDESCRIPTION
request_idstringID of the copy request
status_urlstringURL where you can check the status of the copy request

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid copy parameters (minimum copy length is 10 seconds)
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given video
404 Not Foundnot_foundVideo was not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Check copy status

Get information on the status of the requested copy process.

GET https://api.video.ibm.com/videos-copy-status/{request_id}.json

Parameters

This request has no parameters.

Success response

Upon success a response with HTTP status “200 OK” is returned with the following key-value pairs under a chapters key.

KEYTYPEDESCRIPTION
is_finishedbooleanStatus of the copy process
video_idstringID of the new video
video_urlstringThe URL of the new video resource

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request