- URL:
- https://[root]/portals/[portalID]/isServiceNameAvailable
- Methods:
GET
Example usage
The following is a sample ArcGIS Online request URL for the is
operation:
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 is
operation:
https://machine.domain.com/webadaptor/sharing/rest/portals/0123456789ABCDEF/isServiceNameAvailable?name=streetMap&type=Feature+Service&f=pjson
Description
The is
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
Parameter | Details |
---|---|
| The requested name of service. Example
|
| The service type. Values: |
| The response format. The default format is Values: |
Response properties
Property | Details |
---|---|
| Returns as |
JSON Response syntax
{
"available": <true | false>
}
JSON Response sxample
{
"available": true
}