Get the calculated schedule for a specific week, combining default schedule with any week-specific schedules and overrides.
curl --request GET \
--url https://api.guile.app/barbers/{id}/schedules/weekly \
--header 'Authorization: Bearer <token>'{
"weekStartDate": "2023-12-25",
"schedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"schedule": {
"monday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"tuesday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"wednesday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"thursday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"friday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"saturday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"sunday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
}
},
"isDefault": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"overrides": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startsOn": "2023-12-25",
"endsOn": "2023-12-25",
"type": "timeOff",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startsAt": "<string>",
"endsAt": "<string>",
"description": "<string>"
}
],
"weekSpecificSchedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weekStartDate": "2023-12-25",
"schedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}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.
Ok. The operation succeeded.
Calculated schedule for a specific week
Start date of the week, in RFC 3339 date format (YYYY-MM-DD).
The calculated schedule for this week.
Show child attributes
Schedule overrides affecting this week.
Show child attributes
Week-specific schedule used for this week, if any.
Show child attributes
curl --request GET \
--url https://api.guile.app/barbers/{id}/schedules/weekly \
--header 'Authorization: Bearer <token>'{
"weekStartDate": "2023-12-25",
"schedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"schedule": {
"monday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"tuesday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"wednesday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"thursday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"friday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"saturday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
},
"sunday": {
"workingHours": [
{
"startsAt": "<string>",
"duration": "<string>"
}
],
"breaks": [
{
"startsAt": "<string>",
"duration": "<string>",
"description": "<string>"
}
]
}
},
"isDefault": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
},
"overrides": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"startsOn": "2023-12-25",
"endsOn": "2023-12-25",
"type": "timeOff",
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"startsAt": "<string>",
"endsAt": "<string>",
"description": "<string>"
}
],
"weekSpecificSchedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"weekStartDate": "2023-12-25",
"schedule": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}