Booking table
INFO
Every response arrives in the shared envelope — code, message, messages, status_code, time — with the payload in data. The tables below describe what is inside data.
POST /booking-table/create
This method allows adding booking-table into the account.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | |
organization_id | string | Yes | |
order | number | No |
{
"name": "string",
"organization_id": "67b486d242ed76693cd2cc59",
"order": 0
}Response
| Field | Type | Description |
|---|---|---|
_id | string | |
name | string | |
order | number | |
organization_id | string |
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": {
"_id": "string",
"name": "string",
"order": 0,
"organization_id": "67b486d242ed76693cd2cc59"
},
"time": "2025-05-01T12:00:00Z"
}PUT /booking-table/update
This method allows updating booking-table in the account.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
_id | string | No | |
name | string | No | |
order | number | Yes |
{
"_id": "63f8b0c4e4b0d3a2f8e4b0c4",
"name": "string",
"order": 0
}Response
Same response shape as POST /booking-table/create.
DELETE /booking-table/delete/{id}
Delete a booking-table
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
Request body
No request body.
Response
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": "ok",
"time": "2025-05-01T12:00:00Z"
}GET /booking-table/get-all
Get all booking-tables
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | string | No | Organization ID |
Request body
No request body.
Response
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [
{
"_id": "string",
"name": "string",
"order": 0,
"organization_id": "67b486d242ed76693cd2cc59"
}
],
"time": "2025-05-01T12:00:00Z"
}GET /booking-table/get-by-id/{id}
Get booking-table using its _id
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes |
Request body
No request body.
Response
Same response shape as POST /booking-table/create.
GET /booking-table/get-deleted
Get deleted booking-table ids
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
deleted_at | string | Yes |
Request body
No request body.
Response
{
"code": 0,
"message": "Success",
"status_code": 200,
"data": [
"string"
],
"time": "2025-05-01T12:00:00Z"
}This page is generated from the OpenAPI spec.