The id in the path is authoritative, and any id in the request body is ignored.
Security
BearerAuth
Category id. Ignored on update. The {id} path parameter is authoritative.
Example:"cat_123456"
Description of the category.
Example:"Standard haircut services"
Required. Must contain at least one non-whitespace character; an empty or blank title is rejected with parameter_not_found.
Example:"Haircuts"
Service id(s) belonging to this category.
Example:
[ "svc_123456" ]
URL of the image shown for the category. See RFC 3986 for URI syntax.
Example:"https://cdn.example.com/categories/haircuts.png"
- Production serverhttps://developer.setmore.com/api/v2/categories/{id}
curl -i -X PUT \
https://developer.setmore.com/api/v2/categories/cat_123456 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"id": "cat_123456",
"account_id": "acc_123456",
"description": "Standard haircut services",
"title": "Haircuts",
"service_ids": [
"svc_123456"
],
"color_code": "#FF5733",
"image_url": "https://cdn.example.com/categories/haircuts.png",
"visibility": "PUBLIC"
}'Response
{ "data": { "id": "cat_123456", "account_id": "acc_123456", "description": "Standard haircut services", "title": "Haircuts", "service_ids": [ … ], "color_code": "#FF5733", "image_url": "https://cdn.example.com/categories/haircuts.png", "visibility": "PUBLIC" } }