Skip to main content
Version: v1

List of VOD Objects

This method retrieves a list of VOD objects for a project

Request Parameters

GET /api/clients/v1/vod/

Headers

  • Content-Type: application/json
  • Authorization: Bearer $access_token

Query

ParameterTypeConstraintsDescriptionExample
project_idinteger> 0, requiredProject ID associated with the VOD source2
source_typestrings3_bucket / domainVideo source types3_bucket
limitinteger> 0Number of objects in response50
offsetstring> 0Offset from the beginning of the list0

Response Parameters

JSON body

ParameterTypeDescription
countintegerTotal number of providers
nextstringLink to the previous page
previousstringLink to the next page
resultsobject[]List of VOD objects
200 OK

List of VOD objects

{
"count": 2,
"next": "http://testserver/api/clients/v1/vod?project_id=2",
"previous": null,
"results": [
{
"id": 18,
"vod_domain": "vd14.vod-clients.cdn.itglobal.com",
"source_type": "domain",
"source_id": 14,
"is_active": false
},
{
"id": 19,
"vod_domain": "vs52.vod-clients.cdn.itglobal.com",
"source_type": "s3_bucket",
"source_id": 52,
"is_active": true
}
]
}
400 Bad Request

Invalid or missing required query parameters

{
"project_id": [
"This field is required."
]
}
401 Unauthorized

Authentication credentials were missing or invalid

{
"detail": "Given token not valid for any token type",
"code": "token_not_valid",
"messages": [
{
"token_class": "AccessToken",
"token_type": "access",
"message": "Token is invalid or expired"
}
]
}
403 Forbidden

Only VOD objects whose sources are associated with the current user's project are available

{
"detail": "Only project participants can view this project's VOD"
}