Add a bookable service
post/bookings/services
Before you call
- Credential
Authorization: Bearer $KEY- Scope
bookings:admin- Sdk
bookings.service.create- Cli
bookings service create
Request bodyapplication/json, required
- namestringrequiredAt most 120 characters.
- slugstringPattern: ^[a-z0-9][a-z0-9-]{0,62}$.
- descriptionstringDefault: . At most 4000 characters.
- locationIdstring (uuid) or null
- durationslist of integerDefault: [60].
- defaultDurationintegerDefault: 60. At least 5. At most 1440.
- bufferBeforeintegerDefault: 0. At least 0. At most 480.
- bufferAfterintegerDefault: 0. At least 0. At most 480.
- minNoticeintegerDefault: 0. At least 0. At most 525600.
- horizonDaysintegerDefault: 60. At least 1. At most 730.
- slotStepintegerDefault: 15. At least 5. At most 1440.
- capacityintegerDefault: 1. At least 1. At most 10000.
- modestringOne of: one_to_one, group. Default: one_to_one.
- confirmationstringOne of: instant, manual. Default: instant.
- intakeobjectDefault: {}.
- depositobjectDefault: {"kind":"none"}.
- cancellationPolicyIdstring (uuid) or null
- publishedbooleanDefault: false.
- priceobject or null
- resourceGroupslist of objectDefault: [].
- labelstringDefault: . At most 80 characters.
- needintegerDefault: 1. At least 1. At most 20.
- resourceIdslist of string (uuid)required
- labelstring
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