Assign one or more shop services to a barber.
You can assign up to 25 services per request. A barber can have up to 10 visible services assigned in total.
The response includes counts of successful and failed assignments, along with details of any failures.
The unique, opaque system identifier for a resource. This case-sensitive ID is also used as path parameters in URLs or in other properties or parameters that reference a resource by ID rather than URL.
Properties for assigning services to a barber.
The services to assign to the barber.
1 - 25 elementsOk. The operation succeeded.
Result of assigning services to a barber.
The number of services successfully assigned.
3
The number of services that failed to be assigned.
1
The services that were successfully assigned.
25[
{ "id": "service-123", "name": "Beard Trim" }
]The barber service assignments that were created.
25[
{
"id": "barber-service-123",
"service": { "id": "service-456", "name": "Skin Fade" }
}
]Details of services that failed to be assigned.
25[
{
"type": "https://docs.guile.app/problems/serviceAlreadyAssigned",
"title": "Service already assigned",
"occurredAt": "2024-01-15T10:30:00Z",
"attributes": {
"service": { "id": "service-369", "name": "Skin Fade" }
}
}
]