Bookings
Block Tables
Create a blocked booking to reserve specific tables for a given date and time. This is typically used to hold tables for maintenance, private events, or other non-reservation purposes.
All tables must belong to the authenticated restaurant and be active.
Authorization
bearerAuth AuthorizationBearer <token>
Supports two token types:
- Restaurant tokens — API tokens with
restaurant-apiability, issued per restaurant. - User tokens — Personal access tokens with
mobile-accessability (e.g. for the mobile app). When managing multiple restaurants, includeX-Restaurant-Id: <id>header.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://devrms.tabdevx.com/api/restaurant/bookings/block" \ -H "Content-Type: application/json" \ -d '{ "table_ids": [ 1, 2 ], "date": "2026-03-20", "time": "18:00", "duration": 120, "comment": "Private event" }'{
"message": "Tables blocked successfully",
"booking": {
"id": 456,
"reference": "API-DEF456",
"status": "blocked",
"date": "2026-03-20T18:00:00+01:00",
"end_time": "2026-03-20T20:00:00+01:00",
"tables": [
{
"id": 1,
"name": "T1"
},
{
"id": 2,
"name": "T2"
}
]
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"message": "The given data was invalid.",
"errors": {
"date": [
"The date field is required."
],
"adults": [
"The adults must be at least 1."
]
}
}{
"error": {
"code": "string",
"message": "string",
"details": {}
},
"meta": {
"timestamp": "2019-08-24T14:15:22Z"
}
}