SmartGare
API referenceEndpoints

Correct an occupancy recorded in error

Appends a correction naming the arrival or departure entry recorded in error and the instant that is true instead; the entry stays as it was, the bay's occupancy carries the true instant, and the correction is announced with instants only. **Required permission:** `traffic.occupancy-correction:write`

POST/traffic/v1/occupancy-corrections

Appends a correction naming the arrival or departure entry recorded in error and the instant that is true instead; the entry stays as it was, the bay's occupancy carries the true instant, and the correction is announced with instants only.

Required permission: traffic.occupancy-correction:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectOccupancyRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/occupancy-corrections" \  -H "Content-Type: application/json" \  -d '{    "corrects_entry_id": "string",    "reason": "string",    "true_instant": "2019-08-24T14:15:22Z"  }'
{  "bay_occupancy_id": "string",  "corrected_at": "2019-08-24T14:15:22Z",  "corrected_by": "string",  "corrected_entry_id": "string",  "correction_entry_id": "string",  "freed_at": "2019-08-24T14:15:22Z",  "occupied_at": "2019-08-24T14:15:22Z"}