Check Service Name
- URL:https://<portal-url>/isServiceNameAvailable
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.
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 |
|---|---|
| [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
https://www.arcgis.com/sharing/rest/portals/fa019fbbfbb845d08cc9f0acde6dd8af/isServiceNameAvailable
name: MyService
type: Feature+Service
JSON Response Syntax
{"available": true | false}
JSON Response Example
{"available": true}