Skip to main content

Output Groups

GET Output Groups#

Gell all output groups

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/outputgroups
HeadersAuthorization
Parametersversion, projectId
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesinteger($int32)1Shows the version of API
{projectId}YesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

The description of the parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
VersionYesinteger($int32)1Shows the version of API
ProjectIdYesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "id": "string",      "name": "string",      "customName": "string",      "type": 0,      "description": "string"    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns the list of requested output group
idstring"string"Returns the id of the output group
namestring"string"Returns the default name of the output group
customNamestring"string"Returns the custom name of the output group provided by the user
typeinteger($int32)0Returns the type of the output group
descriptionstring"string"Returns the description of the output group
resultInfoobjectReturns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns the page index, from which page you want to see the requested data
pageSizeinteger($int32)0Returns how many pages you want to list from page index you selected
totalPagesinteger($int32)0Returns the total number of pages
hasNextPagebooltrueReturns the next page of paginated data
hasPreviousPagebooltrueReturns the previous page of paginated data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden

GET Output Group#

Get an output group

GET
MethodGET
URL or EndPoint/api/v{version}/projects/{projectId}/outputgroups/{id}
HeadersAuthorization
Parametersversion, projectId, id
BodyNot Applicable

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesstringv1Shows the version of API
{projectId}Yesstring($uuid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project
{id}Yesinteger($int32)0Shows the id of the output group

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
ProjectIdYesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project
VersionYesinteger($int32)v1Shows the version of API
IdYesinteger($int32)0Shows the id of the output group

Request Body#

The request does not have a request body.

Responses#

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in json format by the service.

{  "success": true,  "errors": [    "string"  ],  "messages": [    "string"  ],  "result": [    {      "name": "string",      "customName": "string",      "segmentControl": 0,      "segmentControlOptions": [        {          "id": 0,          "value": "string",          "enabled": true        }      ],      "segmentLength": 0,      "minSegmentLength": 0,      "type": 0,      "outputGroupsTypes": {        "additionalProp1": 0,        "additionalProp2": 0,        "additionalProp3": 0      },      "typeOptions": [        {          "id": 0,          "value": "string",          "enabled": true        }      ],      "categoryOptions": [        {          "id": 0,          "value": "string",          "enabled": true        }      ],      "hasDRM": true,      "drmList": {        "providers": [          {            "id": 0,            "name": "string"          }        ],        "widevineAlgorithm": {          "widevineId": 0,          "algorithms": [            {              "id": 0,              "type": "string"            }          ]        },        "rawKey": {          "rawKeyId": 0,          "labels": [            "string"          ]        }      },      "groupDRM": {        "shakaPackagerKeyProviderType": 0,        "protectionSchemaType": 0,        "protectionSchemaOptions": [          {            "id": 0,            "value": "string",            "enabled": true          }        ],        "encryptionAlgorithmType": 0,        "label": "string",        "clearLead": 0      },      "description": "string",      "emptyOutputModel": {        "name": "string",        "nameModifier": "string",        "presetId": 0,        "presetName": "string",        "videoCodec": "string",        "audioCodec": "string"      },      "outputs": [        {          "name": "string",          "nameModifier": "string",          "presetId": 0,          "presetName": "string",          "videoCodec": "string",          "audioCodec": "string"        }  ]    }  ],  "resultInfo": {    "totalCount": 0,    "pageIndex": 0,    "pageSize": 0,    "totalPages": 0,    "hasNextPage": true,    "hasPreviousPage": true  }}
Field NameTypeExampleDescription
successbooltrueIf response is success will return true otherwise will return false
errorsarray []"string"Indicate if there was an error
messagesarray []"string"Returns the response message from back-end
resultarray [object]Returns the requested presets
namestring"string"Returns the default name of the output group
customNamestring"string"Returns the custom name of the output group provided by the user. It will overwrite the default name.
segmentControlinteger($int32)0Returns the selected segment control for the requested output group
segmentControlOptionsarray[object]Returns the list of options for segment control for the requested output group
idinteger($int32)0Returns the id of the segment control option
valuestring"string"Returns the value of the segment control type option
enabledboolfalseReturns whether the segment control type option is enabled
segmentLengthinteger($int32)0Returns the segment length for the requested output group
minSegmentLengthinteger($int32)0Returns the minimum segment length for the requested output group
typeinteger($int32)0Returns the selected type for the requested output group
outputGroupsTypesDictionary<string, int>{{"string", 0},{"string", 0}}Returns the list of options for output group type and their correspoding type
typeOptionsarray[object]Returns the list of options for output group type
idinteger($int32)0Returns the id of the output group type option
valuestring"string"Returns the value of the output group type option
enabledboolfalseReturns whether the output group type option is enabled
categoryOptionsarray[object]Returns the list of options for category options for the requested output group
idinteger($int32)0Returns the id of the category option
valuestring"string"Returns the value of the category option
enabledboolfalseReturns whether the category option is enabled
hasDRMboolfalseReturns whether the DRM option is enabled
drmListobjectReturns the DRM list for the requested output group
providersarray[object]Returns the DRM provider list for the requested output group
idinteger($int32)0Returns the id of the DRM provider option for the requested output group
namestring"string"Returns the name of the DRM provider option for the requested output group
widevineAlgorithmobjectReturns the widevine algorithm for the requested output group
widevineIdinteger($int32)0Returns the widevine algorithm id for the requested output group
algorithmsarray[object]Returns the list of encryption models of widevine algorithm for the requested output group
idinteger($int32)0Returns the id of the encryption model option
valuestring"string"Returns the value of the encryption model option
rawKeyobjectReturns the DRM raw key for the requested output group
rawKeyIdinteger($int32)0Returns the id of the DRM raw key for the requested output group
labelsargs[string]{"string", "string"}Returns the labels of the DRM raw key for the requested output group
groupDRMobjectReturns the group DRM for the requested output group
shakaPackagerKeyProviderTypeinteger($int32)0Returns the Shaka Packager key provider type for the requested output group
protectionSchemaTypeinteger($int32)0Returns the selected protection schema type for the requested output group
protectionSchemaOptionsarray[object]Returns the list of options for protection schema type for the requested output group
idinteger($int32)0Returns the id of the protection schema type option
valuestring"string"Returns the value of the protection schema type option
enabledboolfalseReturns whether the protection schema type option is enabled
encryptionAlgorithmTypeinteger($int32)0Returns the encryption algorithm type for the requested output group
labelstring"string"Returns the group DRM label for the requested output group
clearLeadinteger($int32)0Returns the clear lead in seconds if encryption is enabled for the requested output group
descriptionstring"string"Returns the description for the requested output group
emptyOutputModelobjectReturns the empty output model
namestring"string"Returns the default name of the empty output model
nameModifierstring"string"Returns the name of the playlist of the empty output model
presetIdinteger($int32)0Returns the id of the preset of the empty output model
presetNamestring"string"Returns the name of the preset of the empty output model
videoCodecstring"string"Returns the video codec of the empty output model
audioCodecstring"string"Returns the audio codec of the empty output model
outputsarray[object]Returns the list of outputs for the requested output group
namestring"string"Returns the default name of the output option
nameModifierstring"string"Returns the name of the playlist of the output option
presetIdinteger($int32)0Returns the id of the preset of the output option
presetNamestring"string"Returns the name of the preset of the output option
videoCodecstring"string"Returns the video codec of the output option
audioCodecstring"string"Returns the audio codec of the output option
resultInfoobjectReturns an object of behavior
totalCountinteger($int32)0How many records of behavior entity are in database
pageIndexinteger($int32)0Returns the page index, from which page you want to see the requested data
pageSizeinteger($int32)0Returns how many pages you want to list from page index you selected
totalPagesinteger($int32)0Returns the total number of pages
hasNextPagebooltrueReturns the next page of paginated data
hasPreviousPagebooltrueReturns the previous page of paginated data

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code: 401 Unauthorized
  • HTTP Status Code: 403 Forbidden
  • HTTP Status Code: 404 Not found