Sitecore API catalog/Sites API//
- Validate site name
List sites
Create a site
Retrieve a site
Update a site
Delete a site
Duplicate a site
Rename a site
Sort sites
List sites that use an analytics identifier
Unassign analytics identifiers from sites
Retrieve the hierarchy of a site's main page
Retrieve the hierarchy of a page
List ancestors for a page
List children for a page
List hosts for a site
Create a site host
Retrieve a site host by host ID
Update a host by host ID
Delete a site host by host ID
List editing hosts for a site
List site templates
Upload a thumbnail for a site
List localization statistics for a site
Retrieve the sitemap configuration
Update a sitemap configuration
List workflow statistics for a site
Translate a site
List rendering hosts for a site
Validate site name
Validates a site name to ensure it meets the required criteria. The validations applied to the site name:
- Is a string and can't be null.
- Is unique.
- The length of the name is a maximum of 50 characters.
- Can't start or end with a space.
- Can't start with a dash.
- Can include Latin alphanumeric characters, spaces and dashes.
Security
Bearer
- Production serverhttps://xmapps-api.sitecorecloud.io/api/v1/sites/name/validate
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- text/json
- application/*+json
curl -i -X POST \
'https://xmapps-api.sitecorecloud.io/api/v1/sites/name/validate?environmentId=main' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "skate-park"
}'Response
{ "isValid": true, "message": "string" }