/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:

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:

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

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

1
2
3
{
  "available": <true | false>
}

JSON Response sxample

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.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close