SmartGare
API referenceEndpoints

Reassign a departure to another bay

Moves the departure to a different bay under a controlled reason. The commitment that stood is superseded and readable as it was; the one that now stands is a new record with its own identity and its own moment of commitment. **Required permission:** `traffic.assignment:write`

POST/traffic/v1/bay-assignments/{id}/reassignment

Moves the departure to a different bay under a controlled reason. The commitment that stood is superseded and readable as it was; the one that now stands is a new record with its own identity and its own moment of commitment.

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*ReassignBayRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/traffic/v1/bay-assignments/string/reassignment" \  -H "Content-Type: application/json" \  -d '{    "bay_id": "string",    "reason": "string"  }'
{  "assigned_at": "2019-08-24T14:15:22Z",  "assigned_by": "string",  "bay_id": "string",  "eligibility_status": "PENDING_VEHICLE",  "family_override_reason": "string",  "id": "string",  "length_unknown_reason": "string",  "originated_from": "OPERATOR",  "planned_from": "2019-08-24T14:15:22Z",  "planned_until": "2019-08-24T14:15:22Z",  "pre_assigned": true,  "rule_version_id": "string",  "scheduled_departure_id": "string",  "status": "CONFIRMED",  "superseded_assignment_id": "string"}