Skip to main content

Templates

GET Templates#

Get all templates.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/jobtemplates
HeadersAuthorization
Parametersversion, projectId, pageIndex, pageSize, type, search, category
BodyNot Applicable

The description of the URL parameters is as follows:

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

The description of the parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesinteger($int32)1Shows the version of API
{projectId}Yesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project
PageIndexNointeger($int32)1Enter the page index, from which page you want to see jobs
PageSizeNointeger($int32)10Enter how many pages you want to list from page index you selected
TypeNointeger($int32)0Shows the type of template
SearchNostring"string"Shows the substring that must match the template name
CategoryNostring"string"Shows the category of the template

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": 0,      "name": "string",      "jobTemplateType": 0,      "category": "string",      "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 templates object
idinteger($int32)0Returns the id of the template
namestring"string"Returns the name of the template
jobTemplateTypeint0Returns the type of the template. For example 0 for system templates or 1 for custom templates
categorystring"string"Returns the category of the template
descriptionstring"string"Returns the description of the template
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

POST Template#

Create a template.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/jobtemplates
HeadersAuthorization
Parametersversion, projectId
Body{name, category, description, liveJobTemplate, projectId, groups[]{name, customName, segmentControl, segmentLength, minSegmentLength, type, description, hasDRM, groupDrm{shakaPackagerKeyProviderType, protectionSchemaType, encryptionAlgorithmType, label, clearLead}, outputs[]{name, nameModifier, extension, presetId}}}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesstringv1Shows the version of API
{projectId}Yesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
ProjectIdYesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project
VersionYesinteger($int32)v1Shows the version of API

Request body#


{  "name": "string",  "category": "string",  "description": "string",  "liveJobTemplate": false,  "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",  "groups": [    {      "name": "string",      "customName": "string",      "segmentControl": 0,      "segmentLength": 0,      "minSegmentLength": 0,      "type": 0,      "description": "string",      "hasDRM": false,      "groupDrm": {        "shakaPackagerKeyProviderType": 0,        "protectionSchemaType": 0,        "encryptionAlgorithmType": 0,        "label": "string",        "clearLead": 0      },      "outputs": [        {          "name": "string",          "nameModifier": "string",          "extension": "string",          "presetId": 0        }      ]    }  ]}
Body Parameter NameMandatoryTypeExampleDescription
nameYesstring"string"It specifies the name for the template to be created
categoryNostring"string"It specifies the category for the template to be created
descriptionNostring"string"It specifies the description for the template to be created
liveJobTemplateYesboolfalseIt specifies whether the template is made for job or live job
projectIdYesstring($Guid)"3fa85f64-5717-4562-b3fc-2c963f66afa6"It specifies the project id for the template to be created
groupsYesarray[object]It specifies the list of output groups that will be used by the template
nameYesstring"string"It specifies the default name for the specific output group
customNameYesstring"string"It specifies the custom name for the specific output group provided by the user
segmentControlYesinteger($int32)0It specifies the segment control for the transcoded segments
segmentLengthYesinteger($int32)0It specifies the segment length for the transcoded segments
minSegmentLengthYesinteger($int32)0It specifies the minimum segment length for the transcoded segments
typeYesinteger($int32)0It specifies the output group type such as File Group, Apple HLS or DASH ISO
descriptionNostring"string"It specifies the description for the output group
hasDRMYesboolfalseIt specifies whether the DRM iss enabled or not
groupDrmYesobjectIt specifies the group DRM properties
shakaPackagerKeyProviderTypeYesinteger($int32)0It specifies the Shaka Packeger Key Provider Id
protectionSchemaTypeYesinteger($int32)0It specifies the Protection Schema Type Id
labelYesstring"string"It specifies the label for the group DRM
clearLeadYesinteger($int32)0It specifies the clear lead in seconds if encryption is enabled
outputsYesarray[object]It specifies the list of the outputs in regard to the template
nameYesstring"string"It specifies the folder name for the output files to be located
nameModifierYesstring"string"It specifies the name of the playlist
presetIdYesinteger($int32)0It specifies the id of the preset for the output group

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": 0,    "name": "string",    "category": "string",    "description": "string",    "liveJobTemplate": true,    "jobTemplateType": 0,    "jobTemplateTypeOptions": [      {        "id": 0,        "value": "string",        "enabled": true      }    ],    "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "groups": [      {        "name": "string",        "customName": "string",        "uploadedPath": "string",        "segmentControl": 0,        "segmentControlOptions": [          {            "id": 0,            "value": "string",            "enabled": true          }        ],        "segmentLength": 0,        "minSegmentLength": 0,        "type": 0,        "outputGroupsTypes": {          "additionalProp1": 0,          "additionalProp2": 0,          "additionalProp3": 0        },        "typeDescription": "string",        "description": "string",        "groupDRM": {          "shakaPackagerKeyProviderType": 0,          "protectionSchemaType": 0,          "protectionSchemaOptions": [            {              "id": 0,              "value": "string",              "enabled": true            }          ],          "encryptionAlgorithmType": 0,          "label": "string",          "clearLead": 0        },        "drmList": {          "providers": [            {              "id": 0,              "name": "string"            }          ],          "widevineAlgorithm": {            "widevineId": 0,            "algorithms": [              {                "id": 0,                "type": "string"              }            ]          },          "rawKey": {            "rawKeyId": 0,            "labels": [              "string"            ]          }        },        "hasDRM": true,        "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  }}
Body Parameter NameMandatoryTypeExampleDescription
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 live job
idinteger($int32)0Returns the id of the created template
namestring"string"Returns the name of the created template
categorystring"string"Returns the category of the created template
descriptionstring"string"Returns the description of the created template
liveJobTemplateboolfalseReturns true if the template is used for live jobs or false if used for jobs
jobTemplateTypeinteger($int32)0Returns the selected template type for the created template
jobTemplateTypeOptionsarray[object]Returns the list of template type options
idinteger($int32)0Returns the id of the template type option
valuestring"string"Returns the value of the template type option
enabledboolfalseReturns whether the template type option is enabled
projectIdstring($Guid)"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the project id for the created template
groupsarray[object]Returns the list of output groups in regard to the created template
namestring"string"Returns the default name of the encoding group
customNamestring"string"Returns the name of the encoding group provided by the user. It will overwrite the default name
uploadedPathstring"string"Returns the uploaded path of the encoding group
segmentControlinteger($int32)0Returns the selected segment control for the created template
segmentControlOptionsarray[object]Returns the list of segment control options
idinteger($int32)0Returns the id of the segment control option
valuestring"string"Returns the value of the segment control option
enabledboolfalseReturns whether the segment control option is enabled
segmentLengthinteger($int32)0Returns the length of the MPEG-2 Transport Stream segments to create (in seconds)
minSegmentLengthinteger($int32)0Returns the minimum length of the Transport Stream segments
typeinteger($int32)0Returns the id of the selected output group
outputGroupsTypesDictionary<string, int>{"string", 0},{"string", 0}Returns the name and id of output groups
typeDescriptionstring"string"Returns the description for the selected output
descriptionstring"string"Returns the description for the selected output group
groupDRMobjectReturns the properties of the group DRM
shakaPackagerKeyProviderTypeinteger($int32)0Returns the Shaka Packeger Key Provider Id
protectionSchemaTypeinteger($int32)0Returns the selected protection schema type for the created template
protectionSchemaOptionsarray[object]Returns the list of protection schema type options
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 encryption algorithm type
labelstring"string"Returns the label for the group DRM
clearLeadinteger($int32)0Returns the clear lead in seconds if encryption is enabled
drmListobjectReturns the group DRM List
providersarray[object]Returns the list of the Shaka Package Provider
idinteger($int32)0Returns the id of the provider
namestring"string"Returns the name of the provider
widevineAlgorithmobjectReturns the Widevine Model properties
widevineIdinteger($int32)0Returns the id of the Widevine Algorithmn
algorithmsarray[object]Returns the list of the encryption algorithms
idinteger($int32)0Returns the id of the encryption algorithms
typestring"string"Returns the type of the encryption algorithms
rawKeyobjectReturns the raw key model properties
rawKeyIdinteger($int32)0Returns the id of the raw key
labelsarray[string]{"string"}Returns the labels of the selected raw key
hasDRMboolfalseReturns whether the DRM iss enabled or not
emptyOutputModelobjectReturns a output minified model
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the output minified model provided by the user
presetIdinteger($int32)0Returns the preset id of the output minified model
presetNamestring"string"Returns the preset name of the output minified model
videoCodecstring"string"Returns the video codec of the output minified model
audioCodecstring"string"Returns the audio codec of the output minified model
outputsarray[object]Returns the list of the encoding outputs
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the encoding output provided by the user
presetIdinteger($int32)0Returns the preset id of the encoding output
presetNamestring"string"Returns the preset name of the encoding output
videoCodecstring"string"Returns the video codec of the encoding output
audioCodecstring"string"Returns the audio codec of the encoding output
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

PUT Template#

Update a template.

PUT
MethodPUT
URL or EndPoint/api/v{version}/projects/{projectId}/jobtemplates
HeadersAuthorization
Parametersversion, projectId
Body{id, name, category, description, liveJobTemplate, jobTemplateType, projectId, groups[]{name, customName, uploadedPath, segmentControl, segmentLength, minSegmentLength, type, outputGroupsTypes{additionalProp1, additionalProp2}, typeDescription, description, groupDRM{shakaPackagerKeyProviderType, protectionSchemaType, encryptionAlgorithmType, label, clearLead}, drmList{providers[]{id, name}, widevineAlgorithm{widevineId, algorithms[]{id, type}}, rawKey{rawKeyId, labels[]}}, hasDRM, emptyOutputModel{name, nameModifier, presetId, presetName, videoCodec, audioCodec}, outputs[]{name, nameModifier, presetId, presetName, videoCodec, audioCodec}}}

The description of the URL parameters is as follows:

URL Parameter NameMandatoryTypeExampleDescription
{version}Yesstringv1Shows the version of API
{projectId}Yesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project

The description of the parameters is as follows:

Parameter NameMandatoryTypeExampleDescription
ProjectIdYesstring($Guid)3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the project
VersionYesinteger($int32)v1Shows the version of API

Request body#


{  "id": 0,  "name": "string",  "category": "string",  "description": "string",  "liveJobTemplate": true,  "jobTemplateType": 0,  "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",  "groups": [    {      "name": "string",      "customName": "string",      "uploadedPath": "string",      "segmentControl": 0,      "segmentLength": 0,      "minSegmentLength": 0,      "type": 0,      "outputGroupsTypes": {        "additionalProp1": 0,        "additionalProp2": 0,        "additionalProp3": 0      },      "typeDescription": "string",      "description": "string",      "groupDRM": {        "shakaPackagerKeyProviderType": 0,        "protectionSchemaType": 0,        "encryptionAlgorithmType": 0,        "label": "string",        "clearLead": 0      },      "drmList": {        "providers": [          {            "id": 0,            "name": "string"          }        ],        "widevineAlgorithm": {          "widevineId": 0,          "algorithms": [            {              "id": 0,              "type": "string"            }          ]        },        "rawKey": {          "rawKeyId": 0,          "labels": [            "string"          ]        }      },      "hasDRM": true,      "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"        }      ]    }  ]}
Body Parameter NameMandatoryTypeExampleDescription
idYesinteger($int32)0It specifies the id of the template to be updated
nameYesstring"string"It specifies the name of the template to be updated
categoryNostring"string"It specifies the category of the template to be updated
descriptionNostring"string"It specifies the description of the template to be updated
liveJobTemplateYesboolfalseIt specifies whether if the template is used for live jobs or if it used for jobs
jobTemplateTypeYesinteger($int32)0It specifies the template type of the template to be updated
jobTemplateTypeOptionsarray[object]It specifies the template type options
idYesinteger($int32)0It specifies the id of the template type option
valueYesstring"string"It specifies the name of the template type option
enabledYesboolfalseIt specifies if the specific template type is being used or enabled
projectIdYesstring($Guid)"3fa85f64-5717-4562-b3fc-2c963f66afa6"It specifies the project id for the template to be updated
groupsarray[object]It specifies the list of output groups in regard to the template to be updated
nameYesstring"string"It specifies the default name of the encoding group for the template to be updated
customNameYesstring"string"It specifies the name of the encoding group provided by the user. It will overwrite the default name
uploadedPathYesstring"string"It specifies the uploaded path of the encoding group
segmentControlYesstring"string"It specifies the segment control of the encoding group chosen by the user in accordance with the respective group
segmentControlOptionsarray[object]It specifies the segment control options
idYesinteger($int32)0It specifies the id of the segment control option
valueYesstring"string"It specifies the name of the segment control option
enabledYesboolfalseIt specifies if the specific segment control is being used or enabled
segmentLengthYesinteger($int32)0It specifies the length of the MPEG-2 Transport Stream segments to create (in seconds)
minSegmentLengthYesinteger($int32)0It specifies the minimum length of the Transport Stream segments
typeYesinteger($int32)0It specifies the id of the selected output group for the template to be updated
outputGroupsTypesDictionary<string, int>{"string", 0},{"string", 0}It specifies the types of output groups for the template to be updated
typeDescriptionNostring"string"It specifies the description for the selected output
descriptionNostring"string"It specifies the description for the selected output group
groupDRMobjectIt specifies the properties of the group DRM
shakaPackagerKeyProviderTypeYesinteger($int32)0It specifies the Shaka Packager Key Provider Id
protectionSchemaTypeYesinteger($int32)0It specifies the Protection Schema Type Id
protectionSchemaOptionsarray[object]It specifies the protection schema options
idYesinteger($int32)0It specifies the id of the selected protection schema option
valueYesstring"string"It specifies the name of the selected protection schema
enabledYesboolfalseIt specifies if the protection schema option is being used or enabled
labelYesstring"string"It specifies the label for the group DRM
clearLeadYesinteger($int32)0It specifies the clear lead in seconds if encryption is enabled
drmListYesobjectIt specifies the group DRM List
providersYesarray[object]It specifies the list of the Shaka Package Provider for the template to be updated
idYesinteger($int32)0It specifies the id of the provider
nameYesstring"string"It specifies the name of the provider
widevineAlgorithmYesobjectIt specifies the Widevine Model properties for the template to be updated
widevineIdYesinteger($int32)0It specifies the id of the Widevine Algorithm
algorithmsarray[object]It specifies the list of the encryption algorithms
idYesinteger($int32)0It specifies the id of the encryption algorithms
typeYesstring"string"It specifies the type of the encryption algorithms
rawKeyobjectIt specifies the raw key model properties for the template to be updated
rawKeyIdYesinteger($int32)0It specifies the id of the raw key
labelsYesarray[string]{"string"}It specifies the labels od the seleced raw key
hasDRMYesboolfalseIt specifies whether the DRM iss enabled or not
emptyOutputModelYesobjectIt specifies a output minified model for the template to be updated
nameYesstring"string"It specifies the default name of the output minified model
nameModifierYesstring"string"It specifies the name of the output minified model provided by the user
presetIdYesinteger($int32)0It specifies the preset id of the output minified model
presetNameYesstring"string"It specifies the preset name of the output minified model
videoCodecYesstring"string"It specifies the video codec of the output minified model
audioCodecYesstring"string"It specifies the audio codec of the output minified model
outputsarray[object]It specifies the list of the encoding outputs for the template to be updated
nameYesstring"string"It specifies the default name of the output minified model
nameModifierYesstring"string"It specifies the name of the encoding output provided by the user
presetIdYesinteger($int32)0It specifies the preset id of the encoding output
presetNameYesstring"string"It specifies the preset name of the encoding output
videoCodecYesstring"string"It specifies the video codec of the encoding output
audioCodecYesstring"string"It specifies the audio codec of the encoding output

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": 0,    "name": "string",    "category": "string",    "description": "string",    "liveJobTemplate": true,    "jobTemplateType": 0,    "jobTemplateTypeOptions": [      {        "id": 0,        "value": "string",        "enabled": true      }    ],    "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "groups": [      {        "name": "string",        "customName": "string",        "uploadedPath": "string",        "segmentControl": 0,        "segmentControlOptions": [          {            "id": 0,            "value": "string",            "enabled": true          }        ],        "segmentLength": 0,        "minSegmentLength": 0,        "type": 0,        "outputGroupsTypes": {          "additionalProp1": 0,          "additionalProp2": 0,          "additionalProp3": 0        },        "typeDescription": "string",        "description": "string",        "groupDRM": {          "shakaPackagerKeyProviderType": 0,          "protectionSchemaType": 0,          "protectionSchemaOptions": [            {              "id": 0,              "value": "string",              "enabled": true            }          ],          "encryptionAlgorithmType": 0,          "label": "string",          "clearLead": 0        },        "drmList": {          "providers": [            {              "id": 0,              "name": "string"            }          ],          "widevineAlgorithm": {            "widevineId": 0,            "algorithms": [              {                "id": 0,                "type": "string"              }            ]          },          "rawKey": {            "rawKeyId": 0,            "labels": [              "string"            ]          }        },        "hasDRM": true,        "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  }}
Body Parameter NameMandatoryTypeExampleDescription
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
resultobjectReturns the updated job
idinteger($int32)0Returns the id of the updated template
namestring"string"Returns the name of the updated template
categorystring"string"Returns the category of the updated template
descriptionstring"string"Returns the description of the updated template
liveJobTemplateboolfalseReturns true if the template is used for live jobs or false if used for jobs
jobTemplateTypeinteger($int32)0Returns the template type of the updated template
jobTemplateTypeOptionsarray[object]Returns the list of template type options
idinteger($int32)0Returns the id of the job template option
valuestring"string"Returns the name of the job template option
enabledboolfalseReturns if the specific job template is being used or enabled
projectIdstring($Guid)"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the project id for the updated template
groupsarray[object]Returns the list of output groups in regard to the updated template
namestring"string"Returns the default name of the encoding group
customNamestring"string"Returns the name of the encoding group provided by the user. It will overwrite the default name
uploadedPathstring"string"Returns the uploaded path of the encoding group
segmentControlstring"string"Returns the segment control of the encoding group chosen by the user in accordance with the respective group
segmentControlOptionsarray[object]Returns the list of segment control options
idinteger($int32)0Returns the id of the segment control option
valuestring"string"Returns the value of the segment control option
enabledboolfalseReturns if the specific segment control is being used or enabled
segmentLengthinteger($int32)0Returns the length of the MPEG-2 Transport Stream segments to create (in seconds)
minSegmentLengthinteger($int32)0Returns the minimum length of the Transport Stream segments
typeinteger($int32)0Returns the id of the selected output group
outputGroupsTypesDictionary<string, int>{"string", 0},{"string", 0}Returns the name and id of output groups
typeDescriptionstring"string"Returns the description for the selected output
descriptionstring"string"Returns the description for the selected output group
groupDRMobjectReturns the properties of the group DRM
shakaPackagerKeyProviderTypeinteger($int32)0Returns the Shaka Packager Key Provider Id
protectionSchemaTypeinteger($int32)0Returns the Protection Schema Type Id for the updated template
protectionSchemaOptionsarray[object]Returns the list of protection schema type options
idinteger($int32)0Returns the id of the protection schema option
valuestring"string"Returns the name of the protection schema
enabledboolfalseReturns if the protection schema option is being used or enabled
labelstring"string"Returns the label for the group DRM
clearLeadinteger($int32)0Returns the clear lead in seconds if encryption is enabled
drmListobjectReturns the group DRM List
providersarray[object]Returns the list of the Shaka Package Provider for the updated template
idinteger($int32)0Returns the id of the provider
namestring"string"Returns the name of the provider
widevineAlgorithmobjectReturns the Widevine Model properties for the updated template
widevineIdinteger($int32)0Returns the id of the Widevine Algorithmn
algorithmsarray[object]Returns the list of the encryption algorithms for the updated template
idinteger($int32)0Returns the id of the encryption algorithms
typestring"string"Returns the type of the encryption algorithms
rawKeyobjectReturns the raw key model properties for the updated template
rawKeyIdinteger($int32)0Returns the id of the raw key
labelsarray[string]{"string"}Returns the labels od the seleced raw key
hasDRMboolfalseReturns whether the DRM iss enabled or not
emptyOutputModelobjectReturns a output minified model
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the output minified model provided by the user
presetIdinteger($int32)0Returns the preset id of the output minified model
presetNamestring"string"Returns the preset name of the output minified model
videoCodecstring"string"Returns the video codec of the output minified model
audioCodecstring"string"Returns the audio codec of the output minified model
outputsarray[object]Returns the list of the encoding outputs for the updated template
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the encoding output provided by the user
presetIdinteger($int32)0Returns the preset id of the encoding output
presetNamestring"string"Returns the preset name of the encoding output
videoCodecstring"string"Returns the video codec of the encoding output
audioCodecstring"string"Returns the audio codec of the encoding output
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

GET Template#

Get a specific template.

GET ALL
MethodGET ALL
URL or EndPoint/api/v{version}/projects/{projectId}/jobtemplates/{id}
HeadersAuthorization
Parametersversion, projectId, id
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
{id}YesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the template

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
IdYesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the template

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": 0,    "name": "string",    "category": "string",    "description": "string",    "liveJobTemplate": true,    "jobTemplateType": 0,    "jobTemplateTypeOptions": [      {        "id": 0,        "value": "string",        "enabled": true      }    ],    "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "groups": [      {        "name": "string",        "customName": "string",        "uploadedPath": "string",        "segmentControl": 0,        "segmentControlOptions": [          {            "id": 0,            "value": "string",            "enabled": true          }        ],        "segmentLength": 0,        "minSegmentLength": 0,        "type": 0,        "outputGroupsTypes": {          "additionalProp1": 0,          "additionalProp2": 0,          "additionalProp3": 0        },        "typeDescription": "string",        "description": "string",        "groupDRM": {          "shakaPackagerKeyProviderType": 0,          "protectionSchemaType": 0,          "protectionSchemaOptions": [            {              "id": 0,              "value": "string",              "enabled": true            }          ],          "encryptionAlgorithmType": 0,          "label": "string",          "clearLead": 0        },        "drmList": {          "providers": [            {              "id": 0,              "name": "string"            }          ],          "widevineAlgorithm": {            "widevineId": 0,            "algorithms": [              {                "id": 0,                "type": "string"              }            ]          },          "rawKey": {            "rawKeyId": 0,            "labels": [              "string"            ]          }        },        "hasDRM": true,        "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  }}
Body Parameter NameMandatoryTypeExampleDescription
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
resultobjectReturns the requested template
idinteger($int32)0Returns the id of the requested template
namestring"string"Returns the name of the requested template
categorystring"string"Returns the category of the requested template
descriptionstring"string"Returns the description of the selected template
liveJobTemplateboolfalseReturns true if the template is used for live jobs or false if used for jobs
jobTemplateTypeinteger($int32)0Returns the template type of the requested template
jobTemplateTypeOptionsarray[object]Returns the list of template type options
idinteger($int32)0Returns the id of the template type option
valuestring"string"Returns the value of the template type option
enabledboolfalseReturns whether the template type option is enabled
projectIdstring($Guid)"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the project id for the selected template
groupsarray[object]Returns the list of output groups in regard to the requested template
namestring"string"Returns the default name of the encoding group
customNamestring"string"Returns the name of the encoding group provided by the user. It will overwrite the default name
uploadedPathstring"string"Returns the uploaded path of the encoding group
segmentControlinteger($int32)0Returns the segment control of the requested template
segmentControlOptionsarray[object]Returns the list of segment control options
idinteger($int32)0Returns the id of the segment control option
valuestring"string"Returns the value of the segment control option
enabledboolfalseReturns whether the segment control option is enabled
segmentLengthinteger($int32)0Returns the length of the MPEG-2 Transport Stream segments to create (in seconds)
minSegmentLengthinteger($int32)0Returns the minimum length of the Transpost Stream segments
typeinteger($int32)0Returns the id of the requested output group
outputGroupsTypesDictionary<string, int>{"string", 0},{"string", 0}Returns the name and id of output groups
additionalProp1integer($int32)0Returns the id of the specific output group
typeDescriptionstring"string"Returns the description for the requested output
descriptionstring"string"Returns the description for the requested output group
groupDRMobjectReturns the properties of the group DRM for the requested template
shakaPackagerKeyProviderTypeinteger($int32)0Returns the Shaka Packeger Key Provider Id
protectionSchemaTypeinteger($int32)0Returns the Protection Schema Type Id of the requested template
protectionSchemaOptionsarray[object]Returns the list of protection schema type options
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 encryption algorithm type
labelstring"string"Returns the label for the group DRM
clearLeadinteger($int32)0Returns the clear lead in seconds if encryption is enabled
drmListobjectReturns the group DRM List for the requested template
providersarray[object]Returns the list of the Shaka Package Provider for the requested template
idinteger($int32)0Returns the id of the provider
namestring"string"Returns the name of the provider
widevineAlgorithmobjectReturns the Widevine Model properties for the requested template
widevineIdinteger($int32)0Returns the id of the Widevine Algorithmn
algorithmsarray[object]Returns the list of the encryption algorithms for the requested template
idinteger($int32)0Returns the id of the encryption algorithms
typestring"string"Returns the type of the encryption algorithms
rawKeyobjectReturns the raw key model properties for the requested template
rawKeyIdinteger($int32)0Returns the id of the raw key
labelsarray[string]{"string"}Returns the labels od the seleced raw key
hasDRMboolfalseReturns whether the DRM iss enabled or not
emptyOutputModelobjectReturns a output minified model for the requested template
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the output minified model provided by the user
presetIdinteger($int32)0Returns the preset id of the output minified model
presetNamestring"string"Returns the preset name of the output minified model
videoCodecstring"string"Returns the video codec of the output minified model
audioCodecstring"string"Returns the audio codec of the output minified model
outputsarray[object]Returns the list of the encoding outputs for the requested template
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the encoding output provided by the user
presetIdinteger($int32)0Returns the preset id of the encoding output
presetNamestring"string"Returns the preset name of the encoding output
videoCodecstring"string"Returns the video codec of the encoding output
audioCodecstring"string"Returns the audio codec of the encoding output
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

DELETE Template#

Delete a specific template.

DELETE
MethodDELETE
URL or EndPoint/api/v{version}/projects/{projectId}/jobtemplates/{id}
HeadersAuthorization
Parametersversion, projectId, id
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
{id}Yesinteger($int32)0Shows the id of the template

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
IdYesinteger($int32)06Shows the id of the template

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.

{    "message": "string"}
Body Parameter NameMandatoryTypeExampleDescription
messagestring"string"Returns the message in regard to deletion of the template

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

POST Template#

Duplicate a job template.

POST
MethodPOST
URL or EndPoint/api/v{version}/projects/{projectId}/jobtemplates/{id}
HeadersAuthorization
Parametersversion, projectId, id
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
{id}YesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the template

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
IdYesGuid3fa85f64-5717-4562-b3fc-2c963f66afa6Shows the id of the template

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": 0,    "name": "string",    "category": "string",    "description": "string",    "liveJobTemplate": true,    "jobTemplateType": 0,    "jobTemplateTypeOptions": [      {        "id": 0,        "value": "string",        "enabled": true      }    ],    "projectId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",    "groups": [      {        "name": "string",        "customName": "string",        "uploadedPath": "string",        "segmentControl": 0,        "segmentControlOptions": [          {            "id": 0,            "value": "string",            "enabled": true          }        ],        "segmentLength": 0,        "minSegmentLength": 0,        "type": 0,        "outputGroupsTypes": {          "additionalProp1": 0,          "additionalProp2": 0,          "additionalProp3": 0        },        "typeDescription": "string",        "description": "string",        "groupDRM": {          "shakaPackagerKeyProviderType": 0,          "protectionSchemaType": 0,          "protectionSchemaOptions": [            {              "id": 0,              "value": "string",              "enabled": true            }          ],          "encryptionAlgorithmType": 0,          "label": "string",          "clearLead": 0        },        "drmList": {          "providers": [            {              "id": 0,              "name": "string"            }          ],          "widevineAlgorithm": {            "widevineId": 0,            "algorithms": [              {                "id": 0,                "type": "string"              }            ]          },          "rawKey": {            "rawKeyId": 0,            "labels": [              "string"            ]          }        },        "hasDRM": true,        "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  }}
Body Parameter NameMandatoryTypeExampleDescription
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
resultobjectReturns the duplicated job
idinteger($int32)0Returns the id of the duplicated template
namestring"string"Returns the name of the duplicated template
categorystring"string"Returns the category of the duplicated template
descriptionstring"string"Returns the description of the duplicated template
liveJobTemplateboolfalseReturns true if the template is used for live jobs or false if used for jobs
jobTemplateTypeinteger($int32)0Returns the template type of the duplicated template
jobTemplateTypeOptionsarray[object]Returns the duplicated job template options
idinteger($int32)0Returns the id of the duplicated job template
valuestring"string"Returns the name of the duplicated job template
enabledboolfalseReturns if the specific job template is being used or enabled
projectIdstring($Guid)"3fa85f64-5717-4562-b3fc-2c963f66afa6"Returns the project id for the duplicated template
groupsarray[object]Returns the list of output groups in regard to the duplicated template
namestring"string"Returns the default name of the encoding group
customNamestring"string"Returns the name of the encoding group provided by the user. It will overwrite the default name
uploadedPathstring"string"Returns the uploaded path of the encoding group
segmentControlstring"string"Returns the segment control of the encoding group chosen by the user in accordance with the respective group
segmentControlOptionsarray[object]Returns the segment control options
idinteger($int32)0Returns the id of the selected segment control
valuestring"string"Returns the name of the selected segment control
enabledboolfalseReturns if the specific segment control is being used or enabled
segmentLengthinteger($int32)0Returns the length of the MPEG-2 Transport Stream segments to create (in seconds)
minSegmentLengthinteger($int32)0Returns the minimum length of the Transport Stream segments
typeinteger($int32)0Returns the id of the selected output group
outputGroupsTypesDictionary<string, int>{"string", 0},{"string", 0}Returns the name and id of output groups
typeDescriptionstring"string"Returns the description for the selected output
descriptionstring"string"Returns the description for the selected output group
groupDRMobjectReturns the properties of the group DRM
shakaPackagerKeyProviderTypeinteger($int32)0Returns the Shaka Packager Key Provider Id
protectionSchemaTypeinteger($int32)0Returns the Protection Schema Type Id
protectionSchemaOptionsarray[object]Returns the protection schema options
idinteger($int32)0Returns the id of the selected protection schema option
valuestring"string"Returns the name of the selected protection schema
enabledboolfalseReturns if the protection schema option is being used or enabled
labelstring"string"Returns the label for the group DRM
clearLeadinteger($int32)0Returns the clear lead in seconds if encryption is enabled
drmListobjectReturns the group DRM List
providersarray[object]Returns the list of the Shaka Package Provider
idinteger($int32)0Returns the id of the provider
namestring"string"Returns the name of the provider
widevineAlgorithmobjectReturns the Widevine Model properties
widevineIdinteger($int32)0Returns the id of the Widevine Algorithm
algorithmsarray[object]Returns the list of the encryption algorithms
idinteger($int32)0Returns the id of the encryption algorithms
typestring"string"Returns the type of the encryption algorithms
rawKeyobjectReturns the raw key model properties
rawKeyIdinteger($int32)0Returns the id of the raw key
labelsarray[string]{"string"}Returns the labels of the selected raw key
hasDRMboolfalseReturns whether the DRM iss enabled or not
emptyOutputModelobjectReturns a output minified model
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the output minified model provided by the user
presetIdinteger($int32)0Returns the preset id of the output minified model
presetNamestring"string"Returns the preset name of the output minified model
videoCodecstring"string"Returns the video codec of the output minified model
audioCodecstring"string"Returns the audio codec of the output minified model
outputsarray[object]Returns the list of the encoding outputs
namestring"string"Returns the default name of the output minified model
nameModifierstring"string"Returns the name of the encoding output provided by the user
presetIdinteger($int32)0Returns the preset id of the encoding output
presetNamestring"string"Returns the preset name of the encoding output
videoCodecstring"string"Returns the video codec of the encoding output
audioCodecstring"string"Returns the audio codec of the encoding output
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