Skip to content

[EXPERIMENTAL] Get TransportResource Unavailability by id

Request

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

A unique identifier of a TransportResource. Should only contain characters which do not need URL encoding.

unavailability_idstring, (uuid)required

The provided identifier of the Unavailability, or the generated identifier in case of an Unavailability created through the POST endpoint.

Payload
// No request payload

Responses

Transport Resource Unavailability is retrieved

Headers
ETagstring

A weak Etag (ex W/"<etag_value>") which contains the current version of the entity

Example:"W/\"25\""
Bodyapplication/json
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"
Response
{ "id": "string", "transport_resource_id": "tractor-1", "from": "2021-01-01T06:00:00Z", "to": "2021-01-10T06:00:00Z", "description": "maintenance" }