Add new booking

Option 1 - Create a booking associated only with a member. You can the associate the booking with a company as well.
Option 2 - Create a booking associated only with a company. You can the associate the booking with a member as well.

Required scopes: flex.space.bookings.create

Path Params
string
required

organization slug

Query Params
boolean

Whether to send notifications to the member. If true, a notification will not be sent. If false or not passed at all, the notification will be sent as normal.

boolean

Whether to enforce the booking policy and member validation rules for this request. If true, member validations (business hours, min/max duration, future-booking limits, credits-only rule, recurrence span) and booking-policy-driven tentative/approval flagging are applied. If false or not passed at all, the request behaves as it does today, with no additional validation or policy-driven flagging.

Body Params
properties
object

An object that contains all custom properties that can be applied to the item.

string
required

The start date of the booking.

string
required

The end date of the booking.

string
required

The _id of the resource associated with the booking.

string

The description of the booking.

string

The title of the booking.

boolean

Determines whether the booking is confirmed or not.

serviceSlots
object

Determines whether the booking has buffer slots before and after.

extras
array of objects

Contains all the extra fees associated with the booking. You can enter the id of the one-off that will be used as an extra and its quantity.

extras
boolean

Determines whether the booking is free or not.

string

The _id of the member associated with the booking.

string

The _id of the company associated with the booking.

members
array of strings

An array containing a list of all the _ids of teammates associated with the booking. This is possible if the member associated with the booking is part of a company - these company members can be added here.

members
visitors
array of strings

An array containg a list of all the _ids of external visitors associated with the booking.

visitors
recurrence
object

Determines the recurrence rules for the booking.

string

Shows where the booking was created

Response

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json