SmartGare
API referenceEndpoints

Hold a bay aside

Holds a bay for a window with no departure attached, for an event, a control operation or a coach kept in place on instruction. **Required permission:** `traffic.bay-availability:write`

POST/traffic/v1/bay-reservations

Holds a bay for a window with no departure attached, for an event, a control operation or a coach kept in place on instruction.

Required permission: traffic.bay-availability:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ReserveBayRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/bay-reservations" \  -H "Content-Type: application/json" \  -d '{    "bay_id": "string",    "ends_at": "2019-08-24T14:15:22Z",    "reason": "string",    "starts_at": "2019-08-24T14:15:22Z"  }'
{  "bay_id": "string",  "ends_at": "2019-08-24T14:15:22Z",  "id": "string",  "reason": "string",  "released_at": "2019-08-24T14:15:22Z",  "released_by": "string",  "released_reason": "string",  "reserved_at": "2019-08-24T14:15:22Z",  "reserved_by": "string",  "starts_at": "2019-08-24T14:15:22Z",  "status": "ACTIVE"}