Skip to main contentIBM Video Streaming Developers

Manage slideshow

Get Slideshow

Returns the slideshow images

GET https://api.video.ibm.com/channels/{channelId}/settings/off-air/slideshow.json

Success response

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

KEYTYPEDESCRIPTION
idstringId
titlestringtitle
fileNamestringFilename
createdAtstringUpload time
urlstringURL

Example of a success response:

{
"slideshow": [
{
"id": "6867410",
"title": "Image 1",
"fileName": "44203712_223x223_1611153920.jpg",
"createdAt": "2021-01-20 06:45:25",
"url": "https://ustvstaticcdn1-a.akamaihd.net/images/uphoto_file/4/4/2/0/44203712/th/smalls2_120_44203712_223x223_1611153920.jpg"
},

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
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

Reorder Slideshow

PUT https://api.video.ibm.com/channels/{channelId}/settings/off-air/slideshow.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
slideshowint[]REQUIREDSlideshow image ids

The Content-Type of the request should be application/x-www-form-urlencoded.

You have to send every image id. For removing images use the Delete image call.

Example of the request:

POST /channels/1234/settings/off-air/slideshow.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
slideshow[]=123979122&slideshow[]=124044209

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 slideshow
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

Upload a new slideshow image

POST https://api.video.ibm.com/channels/{channelId}/settings/off-air/images.json

Request

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

  • Supported image types:
    • image/jpeg
    • image/png
    • image/gif
  • Maximum image size: 10 MB

CURL example:

curl --location --request POST 'https://git.api.video.ibm.com.lh/channels/1234/settings/off-air/images.json' \
--header 'Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950' \
--header 'Content-Type: image/png' \
--data-binary '@/path/to/your/new/slideshow/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 201.

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
400 Bad Requestbad_requestInvalid (eg. too large image)
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

Get a slideshow image

Returns a slideshow image

GET https://api.video.ibm.com/channels/{channelId}/settings/off-air/images/{imageId}.json

Success response

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

KEYTYPEDESCRIPTION
idstringId
titlestringtitle
fileNamestringFilename
createdAtstringUpload time
urlstringURL

Example of a success response:

{
"image": {
"id": "6867410",
"title": "Image 1",
"fileName": "44203712_223x223_1611153920.jpg",
"createdAt": "2021-01-20 06:45:25",
"url": "https://ustvstaticcdn1-a.akamaihd.net/images/uphoto_file/4/4/2/0/44203712/th/smalls2_120_44203712_223x223_1611153920.jpg"
}
}

Error responses

Possible error responses:

HTTP RESPONSE CODEERROR VALUEERROR CONDITIONS
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
404 Not Foundnot_foundImage not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Change image title

PUT https://api.video.ibm.com/channels/{channelId}/settings/off-air/images/{imageId}.json

Parameters

KEYTYPEIMPORTANCEDESCRIPTION
titlestringREQUIREDTitle, maximum length: 50

The Content-Type of the request should be application/x-www-form-urlencoded.

Example of the request:

PUT /channels/1234/settings/off-air/images/6867410.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
title=New title

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 title
403 Unauthorizedlack_of_ownershipThe provided access token could not access the given channel
404 Not Foundnot_foundImage not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request

Delete image

DELETE https://api.video.ibm.com/channels/{channelId}/settings/off-air/images/{imageId}.json

Example of the request:

DELETE /channels/1234/settings/off-air/images/6867410.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950

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
403 Unauthorizedlack_of_ownershipThe provided access token could not access the given channel
404 Not Foundnot_foundImage not found
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request