Skip to main content
GET
/
barbers
/
{id}
/
schedules
List barber schedules
curl --request GET \
  --url https://api.guile.app/barbers/{id}/schedules \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "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"
    }
  ],
  "count": 1
}

Path Parameters

id
string<uuid>
required

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.

Response

Ok. The operation succeeded.

Collection of barber schedules

items
object[]
required

List of schedules

count
integer<int32>
required

Total number of schedules

Required range: x >= 0