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

Query Parameters

dates
string

A date range, supporting inclusive or exclusive endpoints. Dates ranges use dates expressed in YYYY-MM-DD RFC 3339 date format. The value may have the following forms:

  • YYYY-MM-DD match the date exactly; equivalent to matching dates in the range [YYYY-MM-DD,YYYY-MM-DD]
  • [YYYY-MM-DD,YYYY-MM-DD] between two dates, inclusive of the endpoints
  • (YYYY-MM-DD,YYYY-MM-DD) between two dates, exclusive of the endpoints
  • [YYYY-MM-DD,] on or after the date
  • (YYYY-MM-DD,) after the date
  • [,YYYY-MM-DD] before or on the date
  • (,YYYY-MM-DD) before the date

Examples:

  • '2022-05-19'
  • '[2022-05-01,2022-05-31]'
  • '[2022-05-01,2022-06-01)'
  • '[2022-05-19,]'
  • '(2022-05-19,)'
  • '[,2022-05-19]'
  • '(,2022-05-19)'
Maximum string length: 24
type
enum<string>[]

Filter overrides by type

Types of schedule overrides

Available options:
timeOff,
holiday,
other

Response

Ok. The operation succeeded.

Collection of schedule overrides

items
object[]
required

List of schedule overrides

count
integer<int32>
required

Total number of overrides

Required range: x >= 0