SmartGare
API referenceEndpoints

Correct a coach or bay decision recorded by mistake

Names the history entry recorded by mistake and the true coach or bay, which passes the same checks as replacing the coach or moving the departure; the wrong entry stays as it was and a correction entry names it. It is never counted as a move or a change. A caller without the planner's right corrects only a decision of the current station day. **Required permission:** `traffic.decision-correction:write`

POST/traffic/v1/decision-corrections

Names the history entry recorded by mistake and the true coach or bay, which passes the same checks as replacing the coach or moving the departure; the wrong entry stays as it was and a correction entry names it. It is never counted as a move or a change. A caller without the planner's right corrects only a decision of the current station day.

Required permission: traffic.decision-correction:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectDecisionRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/decision-corrections" \  -H "Content-Type: application/json" \  -d '{    "corrects_entry_id": "string",    "reason": "string"  }'
{  "assignment_type": "BAY",  "bay_id": "string",  "corrected_at": "2019-08-24T14:15:22Z",  "corrected_by": "string",  "correction_entry_id": "string",  "corrects_entry_id": "string",  "scheduled_departure_id": "string",  "standing_assignment_id": "string",  "vehicle_id": "string"}