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

Description

The exists operation checks if a folder or service already exists on the server.

Request parameters

ParameterDetails

serviceName

The name of the service.

Example
Use dark colors for code blocksCopy
1
serviceName=Test

type

The type of the service. This will always be VideoServer.

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 exists operation:

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

serviceName=Test&type=VideoServer&f=json

JSON Response syntax

Use dark colors for code blocksCopy
1
{"exists": <true | false>}

JSON Response example

Use dark colors for code blocksCopy
1
{"exists": true}

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