SmartGare
API referenceEndpoints

Read a departure's assignment history

Returns the append-only journal of what happened to this departure's commitments, in the order it happened. **Required permission:** `traffic.assignment:read`

GET/traffic/v1/departures/{departureId}/assignment-history

Returns the append-only journal of what happened to this departure's commitments, in the order it happened.

Required permission: traffic.assignment:read

AuthorizationBearer <token>

In: header

Response Body

*/*

curl -X GET "https://example.com/traffic/v1/departures/{departureId}/assignment-history"
{  "data": [    {      "accountable_carrier_id": "string",      "assignment_id": "string",      "assignment_type": "BAY",      "bay_id": "string",      "changed_at": "2019-08-24T14:15:22Z",      "changed_by": "string",      "corrected_instant": "2019-08-24T14:15:22Z",      "corrects_entry_id": "string",      "event_type": "CREATED",      "grant_id": "string",      "grant_number": "string",      "id": "string",      "originated_from": "OPERATOR",      "passed_over_authorization_ids": [        "string"      ],      "reason": "string",      "replaced_vehicle_id": "string",      "rule_version_id": "string",      "scheduled_departure_id": "string",      "source": "string",      "turn_consumed_authorization_id": "string",      "vehicle_id": "string"    }  ]}