SmartGare
API referenceEndpoints

Search the fixed-bay plan

Reads the plan by line, authorization, bay or day. Without a day, ended entries are read too, oldest first for each line. **Required permission:** `traffic.fixed-bay:read`

GET/traffic/v1/fixed-bays

Reads the plan by line, authorization, bay or day. Without a day, ended entries are read too, oldest first for each line.

Required permission: traffic.fixed-bay:read

AuthorizationBearer <token>

In: header

Query Parameters

line_id?string

The line whose entries are read.

authorization_id?string

The authorization whose entries are read.

bay_id?string

The bay whose entries are read.

on?string

Only the entries that apply on this day.

Formatdate
page?integer

Zero-based page index, at most 10000.

Formatint32
Range0 <= value <= 10000
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/traffic/v1/fixed-bays"
{  "data": [    {      "authorization_id": "string",      "bay_id": "string",      "coordination_clash": "string",      "ended_at": "2019-08-24T14:15:22Z",      "ended_by": "string",      "ended_reason": "string",      "ends_on": "2019-08-24",      "id": "string",      "line_id": "string",      "planned_at": "2019-08-24T14:15:22Z",      "planned_by": "string",      "reason": "string",      "starts_on": "2019-08-24"    }  ],  "page": 0,  "size": 0,  "total": 0}