Check Service Name

Description

Checks to see if a given service name and type are available for publishing a new service. true indicates that the name and type is not found in the organization's services and is available for publishing. false means the requested name and type are not available.

Request Parameters

Parameter

Details

[Common Parameter]

For a complete listing, see Common parameters.

name

Requested name of service.

Example: name=streetmap

type

Service type.

Values: Feature Service | Map Service

Example: type=Feature+Service

Response Properties

Property

Details

available

Set to true when no other service by this name and type exists in the organization.

Example Usage

URL for Check Service Name

http://www.arcgis.com/sharing/rest/portals/fa019fbbfbb845d08cc9f0acde6dd8af/isServiceNameAvailable
name: MyService
type: Feature+Service

JSON Response Syntax

{"available": true | false}

JSON Response Example

{"available": true}

3/3/2017