Rivier/ Reference/ bookings

Change a service

patch/bookings/services/{id}

Before you call

Credential
Authorization: Bearer $KEY
Scope
bookings:admin
Sdk
bookings.service.update
Cli
bookings service update

Parameters

  • idstring (uuid)required
    In the path

Request bodyapplication/json, required

  • namestring
    At most 120 characters.
  • slugstring
    Pattern: ^[a-z0-9][a-z0-9-]{0,62}$.
  • descriptionstring
    Default: . At most 4000 characters.
  • locationIdstring (uuid) or null
  • durationslist of integer
    Default: [60].
  • defaultDurationinteger
    Default: 60. At least 5. At most 1440.
  • bufferBeforeinteger
    Default: 0. At least 0. At most 480.
  • bufferAfterinteger
    Default: 0. At least 0. At most 480.
  • minNoticeinteger
    Default: 0. At least 0. At most 525600.
  • horizonDaysinteger
    Default: 60. At least 1. At most 730.
  • slotStepinteger
    Default: 15. At least 5. At most 1440.
  • capacityinteger
    Default: 1. At least 1. At most 10000.
  • modestring
    One of: one_to_one, group. Default: one_to_one.
  • confirmationstring
    One of: instant, manual. Default: instant.
  • intakeobject
    Default: {}.
  • depositobject
    Default: {"kind":"none"}.
  • cancellationPolicyIdstring (uuid) or null
  • publishedboolean
    Default: false.
  • priceobject or null
  • resourceGroupslist of object
    Default: [].
    • labelstring
      Default: . At most 80 characters.
    • needinteger
      Default: 1. At least 1. At most 20.
    • resourceIdslist of string (uuid)required

Responses

  • 200application/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