/isServiceNameAvailable: Check Service Name

URL:
https://[root]/portals/[portalID]/isServiceNameAvailable
Methods:
GET

Example usage

The following is a sample ArcGIS Online request URL for the isServiceNameAvailable operation:

Use dark colors for code blocksCopy
1
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/isServiceNameAvailable?name=streetMap&type=Feature+Service&f=pjson

The following is a sample ArcGIS Enterprise request URL for the isServiceNameAvailable operation:

Use dark colors for code blocksCopy
1
https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/isServiceNameAvailable?name=streetMap&type=Feature+Service&f=pjson

Description

The isServiceNameAvailable operation checks whether a given service name and type are available for publishing a new service. If the response returns as true, no service of the same name and type is found in the organization's services and is available for publishing. If the response returns as false, a service of that name and type was already published to the organization.

Request parameters

ParameterDetails

name

The requested name of service.

Example

Use dark colors for code blocksCopy
1
name=streetmap

type

The service type.

Values: Feature Service | Map Service

f

The response format. The default format is html.

Values: html | json | pjson

Response properties

PropertyDetails

available

Returns as true when no other service by this name and type exists in the organization.

JSON Response syntax

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

JSON Response sxample

Use dark colors for code blocksCopy
1
2
3
{
  "available": true
}

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