Tableo Restaurant API
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.

POST
/api/restaurant/bookings/block

Authorization

bearerAuth
AuthorizationBearer <token>

Supports two token types:

  1. Restaurant tokens — API tokens with restaurant-api ability, issued per restaurant.
  2. User tokens — Personal access tokens with mobile-access ability (e.g. for the mobile app). When managing multiple restaurants, include X-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"
  }
}