Rivier/ Reference/ bookings

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

  • scopeKindstringrequired
    One of: location, resource, service.
  • scopeIdstring (uuid)required
  • kindstringrequired
    One of: open, closed.
  • weekdayslist of integer
  • onDatestring
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • startstring
    Pattern: ^([01]\d|2[0-3]):[0-5]\d$.
  • endstring
    Pattern: ^(([01]\d|2[0-3]):[0-5]\d|24:00)$.
  • validFromstring
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • validTostring
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • notestring
    Default: . At most 200 characters.

Responses

  • 201application/json
    Success
    • 400application/json
      The request was malformed
      • errorstringrequired
      • messagestring
    • 401application/json
      No valid credential
      • errorstringrequired
      • messagestring
    • 403application/json
      The credential lacks the scope, origin or address
      • errorstringrequired
      • messagestring
    • 429application/json
      Over the key's rate limit; see Retry-After
      • errorstringrequired
      • messagestring

    This page as Markdown