SmartGare
API referenceEndpoints

End an entry of the fixed-bay plan

Stops the entry from a day, with a reason. The entry is kept. **Required permission:** `traffic.fixed-bay:write`

POST/traffic/v1/fixed-bays/{id}/end

Stops the entry from a day, with a reason. The entry is kept.

Required permission: traffic.fixed-bay:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*EndFixedBayRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/fixed-bays/string/end" \  -H "Content-Type: application/json" \  -d '{    "ends_on": "2019-08-24",    "reason": "string"  }'
{  "authorization_id": "string",  "bay_id": "string",  "coordination_clash": "string",  "ended_at": "2019-08-24T14:15:22Z",  "ended_by": "string",  "ended_reason": "string",  "ends_on": "2019-08-24",  "id": "string",  "line_id": "string",  "planned_at": "2019-08-24T14:15:22Z",  "planned_by": "string",  "reason": "string",  "starts_on": "2019-08-24"}