SmartGare
API referenceEndpoints

Mark a bay free

Records the moment the coach left, and answers with both instants on one record. A source that did not record the arrival cannot end it: it opens a disagreement instead, and the bay keeps the coach. **Required permission:** `traffic.assignment:write`

POST/traffic/v1/bay-occupancies/{id}/free

Records the moment the coach left, and answers with both instants on one record. A source that did not record the arrival cannot end it: it opens a disagreement instead, and the bay keeps the coach.

Required permission: traffic.assignment:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*MarkBayFreeRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/bay-occupancies/string/free" \  -H "Content-Type: application/json" \  -d '{    "freed_at": "2019-08-24T14:15:22Z",    "source": "string"  }'
{  "bay_assignment_id": "string",  "bay_id": "string",  "correction_status": "NONE",  "freed_at": "2019-08-24T14:15:22Z",  "freed_by": "string",  "freed_source": "string",  "id": "string",  "occupied_at": "2019-08-24T14:15:22Z",  "occupied_by": "string",  "occupied_source": "string",  "vehicle_id": "string"}