Rivier/ Reference/ bookings

Bookings session rule create

post/bookings/sessions/rules

Sessions of a group service that repeat on weekdays at a time on the clock of its location, from a date until another (or open). Rivier makes them forward as far as the service takes bookings, and keeps making them; without a capacity of its own each takes the service's and follows it when it changes.

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:admin
Sdk
bookings.sessionRule.create
Cli
bookings session rule create

Request bodyapplication/json, required

  • serviceIdstring (uuid)required
  • weekdayslist of integerrequired
  • timestringrequired
    Pattern: ^([01]\d|2[0-3]):[0-5]\d$.
  • durationMinutesinteger
    At least 5. At most 1440.
  • capacityinteger
    At least 1. At most 10000.
  • fromstringrequired
    Pattern: ^\d{4}-\d{2}-\d{2}$.
  • untilstring
    Pattern: ^\d{4}-\d{2}-\d{2}$.

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