Skip to content
URL:
https://<root>/services/create
Methods:
POST
Version Introduced:
12.0

Description

The create operation creates a new video service. A service is created by submitting a JSON representation of the service to this operation. Video services primarily act as containers for video layers, which can be created with the Add Layer operation.

Request parameters

ParameterDetails

service

The JSON representation of the service being created. Video Server only relies upon the serviceName property during service creation.

Example
Use dark colors for code blocksCopy
1
2
3
{
  "serviceName": "TestVideoService"
}

f

(Required)

The response format. The default response format is html.

Values: html | json | pjson

token

(Required)

Users interacting programmatically with this endpoint must generate a token that must be included as a request parameter. A token can be obtained using the Generate Token operation.

Example usage

The following is a sample POST request for the create operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
POST /<context>/admin/services/create HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

service={
  "serviceName": "TestVideoService"
  }

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
{
  "status": "< success | failure >"
}

JSON Response example

The following is a sample success response for the create operation, indicating that the service was created successfully:

Use dark colors for code blocksCopy
1
2
3
{
  "status": "success"
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.