Skip to main contentIBM Video Streaming Developers

Organization Settings

Get a list of accessible Organizations

This API call lists all the Organizations accessible to the user represented by the token.

GET https://api.video.ibm.com/organizations.json

Example of the request:

GET /organizations.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950

The token in the above call is only an example.

Success response

Upon success, a set of key-value pairs is returned under an organizations element with an HTTP Status code of 200.

KEYTYPEDESCRIPTION
idstringThe unique id of the Organization
namestringThe name of the Organization

Example of a success response:

{
"organizations": [
{
"id": "ZzzqXZ",
"name": "My Organization"
}
]
}

Error responses

Possible error responses:

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

Get an Organization

This API call returns the name of an Organization.

GET https://api.video.ibm.com/organizations/{organizationId}.json

Example of the request:

GET /organization/ZzzqXZ.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950

The token in the above call is only an example.

Success response

Upon success, the Organization name is returned with an HTTP Status code of 200.

KEYTYPEDESCRIPTION
namestringThe name of the Organization

Example of a success response:

{
"name": "My Organization"
}

Error responses

Possible error responses:

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

Update an Organization

This API call let’s you update an Organization.

PUT https://api.video.ibm.com/organizations/{organizationId}.json

Parameters

The parameters for the POST request:

PARAMETERTYPEIMPORTANCEDESCRIPTION
namestringREQUIREDOrganization name

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

Example of the request:

PUT /organization/ZzzqXZ.json HTTP/1.1
Host: api.video.ibm.com
Authorization: Bearer 3c2573673b782f6544405a22636f3d5d3b6f3950
Content-Type: application/x-www-form-urlencoded
name=My+new+Organization+name

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 CONDITIONS
400 Bad RequestWe couldn’t update the Organization with the provided parameters (eg.: empty name)
401 UnauthorizedThe provided access token is missing, revoked, expired or malformed
403 ForbiddenThe provided access token has no access to the user
503 Service UnavailableThere is a temporary error on the server which makes it impossible to serve the request