ZenSpace
  1. Bookings
ZenSpace
  • ZenSpace Integration Documentation
  • ZenSpace General Architecture - Overview
  • ZenSpace API V1.0
    • Device Management
      • lock
        • Get Device Status
        • Subscribe to Device Events
        • Action on IoT Device
        • Get Device Control
      • camera
        • Get Device Status
        • Subscribe to Device Events
        • Action on IoT Device
        • Get Device Instruction
        • Get Device Control
      • light
        • Get Device Instruction
        • Get Device Status
        • Subscribe to Device Events
        • Action on IoT Device
        • Get Device Control
      • fan
        • Get Device Status
        • Subscribe to Device Events
        • Action on IoT Device
        • Get Device Instruction
        • Get Device Control
      • o3-sensor
        • temprature
          • Subscribe to Device Events Copy Copy
          • Get Device Status
        • buzzer
          • Get Device Status Copy
          • Action on IoT Device
        • occupancy
          • Get Device Status
        • ring-light
          • Action on IoT Device
          • Get Device Status
        • Get Device Instruction
        • Get Device Status
        • Subscribe to Device Events
        • Action on IoT Device
        • Get Device Control
      • meeting-room-display
        • Get Device Status
      • Get Device Instruction Copy
      • Fetch Associated Device Types
    • Bookings
      • Create, Update, or Cancel a Booking
      • Bulk Booking Operation
      • Check-in Operation
    • Meeting Space
      • Store Meeting Space Availability
      • Get the list of meeting spaces.
      • Get the state of a specific meeting space.
  • ZenSpace API V2.0
    • Device Management
      • lock
        • Get Device Control
        • Action on IoT Device
        • Subscribe to Device Events
        • Get Device Status
      • camera
        • Subscribe to Device Events
        • Get Device Control
        • Get Device Instruction
        • Action on IoT Device
        • Get Device Status
      • light
        • Get Device Status
        • Subscribe to Device Events
        • Get Device Instruction
        • Get Device Control
        • Action on IoT Device
      • fan
        • Get Device Instruction
        • Get Device Control
        • Action on IoT Device
        • Subscribe to Device Events
        • Get Device Status
      • o3-sensor
        • temprature
          • Get Device Status
          • Subscribe to Device Events Copy Copy
        • buzzer
          • Action on IoT Device
          • Get Device Status Copy
        • occupancy
          • Get Device Status
        • ring-light
          • Get Device Status
          • Action on IoT Device
        • Action on IoT Device
        • Get Device Control
        • Subscribe to Device Events
        • Get Device Status
        • Get Device Instruction
      • meeting-room-display
        • Get Device Status
      • Fetch Associated Device Types
      • Get Device Instruction Copy
    • Bookings
      • Check-in Operation
        GET
      • Bulk Booking Operation
        POST
      • Create, Update, or Cancel a Booking
        POST
    • Meeting Space
      • Get the state of a specific meeting space.
      • Get the list of meeting spaces.
      • Store Meeting Space Availability
  • ZenSpace Supported Devices
    • ZenSpace Device Integration
  1. Bookings

Create, Update, or Cancel a Booking

POST
/booking_operation

Request

Body Params application/json

Example
{
    "attendees": [
        {
            "email": "du@mail.com",
            "name": "Du kar",
            "phone": "0987654321"
        }
    ],
    "created_by_email": "du@example.com",
    "created_by_name": "Du kar",
    "created_by_phone_no": "12345678901",
    "end_datetime": "2024-12-08T03:20:00-08:00",
    "external_id": "f45th-7tghu76-t5464yrt",
    "id": "1df0af31-00dc-48ed-a1a3-faf951414e4d",
    "is_active": true,
    "meeting_space_id": "dcd8ec68-8516-4a4f-a03f-cf82f604d32b",
    "start_datetime": "2024-12-08T03:16:00-08:00",
    "unlock_key": "1111"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/booking_operation' \
--header 'Content-Type: application/json' \
--data-raw '{
    "attendees": [
        {
            "email": "du@mail.com",
            "name": "Du kar",
            "phone": "0987654321"
        }
    ],
    "created_by_email": "du@example.com",
    "created_by_name": "Du kar",
    "created_by_phone_no": "12345678901",
    "end_datetime": "2024-12-08T03:20:00-08:00",
    "external_id": "f45th-7tghu76-t5464yrt",
    "id": "1df0af31-00dc-48ed-a1a3-faf951414e4d",
    "is_active": true,
    "meeting_space_id": "dcd8ec68-8516-4a4f-a03f-cf82f604d32b",
    "start_datetime": "2024-12-08T03:16:00-08:00",
    "unlock_key": "1111"
}'

Responses

🟢200OK
*/*
Booking operation successful.
Body

Example
{
    "booking_id": "1df0af31-00dc-48ed-a1a3-faf951414e4d",
    "message": "Booking created successfully."
}
🟠400Bad Request
Modified at 2025-05-09 12:02:14
Previous
Bulk Booking Operation
Next
Get the state of a specific meeting space.
Built with