SmartGare
API referenceEndpoints

Search bay conflicts

Returns the clashes matching the filter, page by page, in the order they happen. A clash is two departures aimed at one bay, or a departure's commitment under a hold or a fault, judged on windows widened by the turnaround buffer in force. A period selects every clash whose window overlaps it. **Required permission:** `traffic.assignment:read`

GET/traffic/v1/bay-conflicts

Returns the clashes matching the filter, page by page, in the order they happen. A clash is two departures aimed at one bay, or a departure's commitment under a hold or a fault, judged on windows widened by the turnaround buffer in force. A period selects every clash whose window overlaps it.

Required permission: traffic.assignment:read

AuthorizationBearer <token>

In: header

Query Parameters

status?string

Open clashes still need an operator; resolved ones are the record.

Value in

  • "OPEN"
  • "RESOLVED"
bay_id?string

The bay whose clashes are read.

from?string

Start of the period, inclusive.

Formatdate-time
to?string

End of the period, exclusive.

Formatdate-time
page?integer

Zero-based page index.

Formatint32
Range0 <= value
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/traffic/v1/bay-conflicts"
{  "data": [    {      "bay_id": "string",      "buffer_combination": {        "combination": "LARGER_OF_THE_TWO",        "rule_version_id": "string"      },      "ends_at": "2019-08-24T14:15:22Z",      "first": {        "buffer": {          "after_seconds": 0,          "before_seconds": 0,          "rule_version_id": "string",          "source": "SCOPED"        },        "compared_from": "2019-08-24T14:15:22Z",        "compared_until": "2019-08-24T14:15:22Z",        "hold_id": "string",        "planned_from": "2019-08-24T14:15:22Z",        "planned_until": "2019-08-24T14:15:22Z",        "scheduled_departure_id": "string"      },      "flagged_at": "2019-08-24T14:15:22Z",      "flagged_by": "string",      "id": "string",      "resolution": "REASSIGNED",      "resolved_at": "2019-08-24T14:15:22Z",      "resolved_by": "string",      "resolved_by_bay_assignment_id": "string",      "resolved_reason": "string",      "second": {        "buffer": {          "after_seconds": 0,          "before_seconds": 0,          "rule_version_id": "string",          "source": "SCOPED"        },        "compared_from": "2019-08-24T14:15:22Z",        "compared_until": "2019-08-24T14:15:22Z",        "hold_id": "string",        "planned_from": "2019-08-24T14:15:22Z",        "planned_until": "2019-08-24T14:15:22Z",        "scheduled_departure_id": "string"      },      "starts_at": "2019-08-24T14:15:22Z",      "status": "OPEN",      "type": "BAY_ASSIGNMENT_OVERLAPS"    }  ],  "page": 0,  "size": 0,  "total": 0}