Skip to content

[EXPERIMENTAL] Get all TransportResource Unavailabilities by TransportResource id

Request

Get all TransportResource Unavailabilities by TransportResource id. When a from and until are provided, we match any Unavailabilities that overlap with this range.

Security
clientCredentials
Path
idstring^[a-zA-Z0-9.~\-_]{1,512}$required

A unique identifier of an entity instance. Should only contain characters which do not need URL encoding.

Query
fromstring, (date-time)
Example:from=2021-01-01T10:15:30Z
untilstring, (date-time)
Example:until=2021-01-05T10:15:30Z
Payload
// No request payload

Responses

Transport Resource is retrieved

Bodyapplication/json
Array [
idstringread-only

The unique Unavailability ID.

transport_resource_idstring(TransportResourceId)^[a-zA-Z0-9.~\-_]+$read-only

The TransportResource that has this Unavailability.

Example:"tractor-1"
fromstring, (date-time)required
Example:"2021-01-01T06:00:00Z"
tostring, (date-time)required

must be strictly greater than from

Example:"2021-01-10T06:00:00Z"
descriptionstring
Example:"maintenance"
versioninteger(Version)

Version of the entity, can be used for optimistic locking.

Example:42
]
Response
[ { "id": "string", "transport_resource_id": "tractor-1", "from": "2021-01-01T06:00:00Z", "to": "2021-01-10T06:00:00Z", "description": "maintenance", "version": 42 } ]