Add an opening-hours or closure rule
post/bookings/rules
Before you call
- Credential
Authorization: Bearer $KEY- Scope
bookings:admin- Sdk
bookings.rule.create- Cli
bookings rule create
Request bodyapplication/json, required
- scopeKindstringrequiredOne of: location, resource, service.
- scopeIdstring (uuid)required
- kindstringrequiredOne of: open, closed.
- weekdayslist of integer
- onDatestringPattern: ^\d{4}-\d{2}-\d{2}$.
- startstringPattern: ^([01]\d|2[0-3]):[0-5]\d$.
- endstringPattern: ^(([01]\d|2[0-3]):[0-5]\d|24:00)$.
- validFromstringPattern: ^\d{4}-\d{2}-\d{2}$.
- validTostringPattern: ^\d{4}-\d{2}-\d{2}$.
- notestringDefault: . At most 200 characters.
Responses
- 201application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring