Skip to main contentIBM Video Streaming Developers

Cover image

Get the channel cover image

GET https://api.video.ibm.com/channels/{channel_id}/design/cover.json

Success response

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

KEYTYPEDESCRIPTION
imagestringCover image URL

Error responses

Possible error responses:

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

Upload cover image

POST https://api.video.ibm.com/channels/{channel_id}/design/cover.json

Request

The image must be passed in the HTTP body as binary data.

  • The image dimensions must be: 2560 x 852 px
  • Supported image types:
    • image/jpeg
    • image/png
    • image/gif
  • Maximum image size: 5 MB

CURL example:

curl --location --request POST 'https://git.api.video.ibm.com.lh/channels/1234/design/cover.json' \
--header 'Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950' \
--header 'Content-Type: image/png' \
--data-binary '@/path/to/your/new/cover/image.png'

Note that the token in the above call is only an example.

Success response

Upon success the response body is empty with an HTTP Status code of 204.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid input
401 Unauthorizedinvalid_tokenThe provided access token is missing, revoked, expired or malformed
403 Unauthorizedlack_of_ownershipThe provided access token could not access the given channel
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Delete cover image

DELETE https://api.video.ibm.com/channels/{channel_id}/design/cover.json

Success response

Upon success, a response with HTTP status “204 No Content” is returned.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
403 Forbiddenlack_of_ownershipThe API user is not allowed to manage the given channel
404 Not Foundnot_foundChannel not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request