v1
latestOpenAPI 3.0.02026-07-24161215397.4 KBAdd 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 parameters
organization slug
Query parameters
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.
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.
Request body
Example request
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"start": "2024-10-31T13:00:00.000Z",
"end": "2024-10-31T13:00:00.000Z",
"resource": "603dfbc260f4054084125d36",
"description": "Meeting with John",
"title": "Quick meeting",
"isTentative": true,
"serviceSlots": {
"before": 10,
"after": 10
},
"extras": [
{
"_id": "603dfbc260f4054084125d39",
"count": 2
}
],
"isFree": true,
"member": "603dfbc260f4054084125d36",
"company": "603dfbc260f4054084125d36",
"members": [
"603dfbc260f4054084125d36",
"603dfbc260f4054084125d37"
],
"visitors": [
"603dfbc260f4054084125d36",
"603dfbc260f4054084125d37"
],
"recurrence": {
"rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10",
"exdates": [
"2024-10-31T13:00:00.000Z"
]
},
"source": "admin"
}Response
Example response
{
"properties": {
"customProperty1": "value1",
"customProperty2": "value2"
},
"_id": "603dfbc260f4054084125d39",
"timezone": "Europe/London",
"start": "2024-10-31T13:00:00.000Z",
"end": "2024-10-31T13:30:00.000Z",
"recurrence": {
"rrule": "FREQ=WEEKLY;BYDAY=MO,WE,FR;COUNT=10",
"exdates": [
"2024-10-31T13:00:00.000Z"
]
},
"seriesStart": "2024-10-31T13:00:00.000Z",
"seriesEnd": "2024-10-31T13:30:00.000Z",
"location": "603dfbc260f4054084125d39",
"company": "603dfbc260f4054084125d39",
"member": "603dfbc260f4054084125d39",
"resource": "603dfbc260f4054084125d39",
"fees": [
{
"date": "2017-10-31T00:00:00.000Z",
"extraFees": [],
"credits": [
{
"count": 2,
"credit": "594932ea518f3f150d306c89"
}
],
"customPrice": 100
}
],
"reference": "81LCV6S",
"title": "Meeting with John",
"rate": "603dfbc260f4054084125d39",
"description": "Meeting with John at the office.",
"isTentative": true,
"extras": [
{
"_id": "603dfbc260f4054084125d39",
"count": 2
}
],
"visitors": [
"603dfbc260f4054084125d36",
"603dfbc260f4054084125d37"
],
"members": [
"603dfbc260f4054084125d36",
"603dfbc260f4054084125d37"
],
"serviceSlots": {
"before": 10,
"after": 10
},
"source": "admin",
"createdAt": "2022-02-07T10:03:33.169Z",
"createdBy": "5bbb155174321f100085eac1",
"modifiedAt": "2022-02-08T10:03:33.169Z",
"modifiedBy": "5bbb155174321f100085eac1"
}