Creates a service category in the Location catalog. The response is the new category as listServiceCategories returns it; the Location header holds its URL.
- Name. Leading and trailing spaces are trimmed. A name with a link (a URL or any
word.wordwithout a space) fails with422at/name, as increateService: Altegio would remove the link. A name that is empty after trimming, and characters outside the Basic Multilingual Plane (emoji), fail with422too. - Weight. Without
weightthe category gets the highestweightamong the services and categories of the Location plus one, but not more than2147483647.
The body must be a JSON object sent as application/json: another media type fails with 415 unsupported_media_type, broken JSON or a body that is not an object with 400 malformed_request.
Name of the category. Leading and trailing spaces are trimmed. A link (a URL or any word.word without a space), an empty name and characters outside the Basic Multilingual Plane (emoji) fail with 422.
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/service_categories
- Preview resource API contract - endpoint surface is not live yethttps://api.alteg.io/api/v3/locations/{location_id}/service_categories
curl -i -X POST \
'https://developer.alteg.io/_mock/en/b2b-v3/openapi/locations/{location_id}/service_categories' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Haircuts",
"weight": 10
}'The created service category. Location holds its URL, /api/v3/locations/{location_id}/service_categories/{id}.
Requests left in the most constrained policy window that applies to this request.
On 429, seconds until the most constrained policy frees up; it equals Retry-After there. On a successful response it reports the length of that policy's window rather than the time left in the current one, so treat it as the window size, not as a countdown — the counter to pace against is RateLimit-Remaining.
Most constrained policy applied to the request, as <limit>;w=<window in seconds>.
Id of the chain that manages the category; null for a category of this Location alone. A chain category is not accepted by createService or updateService.
{ "id": 205, "object": "service_category", "name": "Haircuts", "chain_id": null, "weight": 10 }