Act on a bay from the bay map
Has bay allocation move a departure's bay, free a bay, mark it occupied, settle an autocar that is not the one committed, release a departure's bay for a controlled reason, or correct an arrival, a departure, a coach or a bay decision recorded in error — the wrong entry kept beside the correction, a correction sent only under bay allocation's correction right — and records the command with the operator, the reason and bay allocation's answer: DONE with the record it made, or REFUSED with its code unchanged. The same command id sent again answers what the first send got and acts once; a command still SENT is unresolved. **Required permission:** `supervision.bay-command:issue`
/supervision/v1/bay-commandsHas bay allocation move a departure's bay, free a bay, mark it occupied, settle an autocar that is not the one committed, release a departure's bay for a controlled reason, or correct an arrival, a departure, a coach or a bay decision recorded in error — the wrong entry kept beside the correction, a correction sent only under bay allocation's correction right — and records the command with the operator, the reason and bay allocation's answer: DONE with the record it made, or REFUSED with its code unchanged. The same command id sent again answers what the first send got and acts once; a command still SENT is unresolved.
Required permission: supervision.bay-command:issue
Authorization
oauth2 In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
*/*
*/*
curl -X POST "https://example.com/supervision/v1/bay-commands" \ -H "Content-Type: application/json" \ -d '{ "command_id": "string", "kind": "string", "reason": "string", "target_id": "string" }'{ "command": { "alert_id": "string", "answered_at": "2019-08-24T14:15:22Z", "command_id": "string", "details": { "bay_id": "string", "family_override_reason": "string", "length_unknown_reason": "string", "observed_at": "2019-08-24T14:15:22Z", "reason_code": "string", "replacement_reason": "string", "resolution": "string", "vehicle_id": "string" }, "kind": "MOVE", "permission": "string", "reason": "string", "refusal_code": "string", "requested_at": "2019-08-24T14:15:22Z", "requested_by": "string", "result_id": "string", "status": "SENT", "target_id": "string" }}