- URL:https://[root]/portals/[portalID]/isServiceNameAvailable
Example usage
Below is a sample ArcGIS Online request URL for the isServiceNameAvailable operation:
https://org.arcgis.com/sharing/rest/portals/0123456789ABCDEF/isServiceNameAvailable?name=streetMap&type=Feature+Service&f=pjson
Below is a sample ArcGIS Enterprise request URL for the isServiceNameAvailable operation:
https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/isServiceNameAvailable?name=streetMap&type=Feature+Service&f=pjson
Description
Checks whether 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.
Nota:
For ArcGIS Enterprise users: This operation only verifies the uniqueness of your input service name, and not whether it is valid under the ArcGIS Enterprise portal's name policy. The createService operation will fail if the requested service name contains spaces or special characters other than underscores.
Request parameters
Parameter | Details |
---|---|
name | The requested name of service. Example
Example: 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
Property | Details |
---|---|
available | Set to true when no other service by this name and type exists in the organization. |
JSON Response syntax
{
"available": <true | false>
}
JSON Response sxample
{
"available": true
}