Checks whether a custom slug is validate for the service.
The checks include:
The call fails if at least one of the checks fails.
You can only call this method when authenticated as a Wix app or Wix user identity.
IO of the service to check custom slug validity for.
Custom slug to validate.
Whether the slug is valid.
Valid slug. Available only if {"valid": true}
.
Reasons why the slug is invalid. Available only if {"valid": false}
.
curl -X POST 'https://www.wixapis.com/bookings/v2/services/slugs/validate' \
-H 'Authorization: <AUTH>' \
-d '{
"serviceId": "d779a301-398d-4552-aa8c-3bef0b65cedb",
"slug_name": "custom_slug"
}'
{
"valid": true,
"slug_name": "custom_slug",
"errors": []
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.