Assignment Gateway Public API (3.0.0)

Download OpenAPI specification:

Definitions for Assignment Gateway Public API

auth

Authentication and token management

OpenID Configuration

Endpoint for discovering all OpenId Connect endpoints

Responses

Response samples

Content type
application/json
{
  • "issuer": "string",
  • "token_endpoint": "string",
  • "jwks_uri": "string",
  • "scopes_supported": [
    ],
  • "response_types_supported": [
    ],
  • "subject_types_supported": [
    ],
  • "id_token_signing_alg_values_supported": [
    ]
}

Retrieve Token

Endpoint for exchanging credentials for tokens (access token and ID token)

Authorizations:
basicAuth
Request Body schema: application/x-www-form-urlencoded
required
grant_type
string
scope
string

Responses

Response samples

Content type
application/json
{
  • "access_token": "string",
  • "token_type": "Bearer",
  • "expires_in": 0,
  • "scope": "string",
  • "id_token": "string"
}

JWKS

Endpoint for fetching JSON Web Key Set (JWKS) to verify the retrieved tokens

Responses

Response samples

Content type
application/json
{
  • "keys": [
    ]
}

assignment

Vehicle assignment operations

postAssignmentAttempt

Post an assignment attempt to sign on / sign off a vehicle.

Authorizations:
bearerAuth
header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Assignment attempt request

vehicleId
string

Required unique vehicle id 17 characters.

object (AssignmentAttemptRequestSignOn)

Attempt to sign the vehicle on to a specified vehicle task or one or more journey(s).

object (AssignmentAttemptRequestSignOff)

Request to sign the vehicle out from assigned journey. The result is effective immediately. It signals that the vehicle will no longer service journey.

Responses

Request samples

Content type
application/json
{
  • "vehicleId": "string",
  • "signOn": {
    },
  • "signOff": {
    }
}

Response samples

Content type
application/json
{
  • "result": {
    },
  • "vehicleState": {
    }
}

getAssignmentVehicleState

Look up a vehicle's (assignment) state.

Authorizations:
bearerAuth
path Parameters
vehicleId
required
string

Unique vehicle identifier

query Parameters
includeCalls
boolean

Flag indicating if returned journeys should include call data or not (default: false).

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "vehicleState": {
    }
}

journey

Journey, line and stop point queries

findJourneys

Find journeys for a given set of search criteria.

Authorizations:
bearerAuth
query Parameters
query
string

General-purpose search parameter that can accept various identifiers like vehicle journey ID (e.g., "86"), journey references, or pattern references to return matching journeys with their associated details including external IDs and pattern references.

stopPoint
string

Filters journeys by stop point identifier. Accepts various stop point identifiers such as NSR:Quay IDs (e.g., "NSR:Quay:109233") and returns journeys that serve the specified stop point, including details like stop name (e.g., "Nationaltheatret"), public code, and related stop area references.

vehicleTask
string

Filters journeys by vehicle task identifier. Accepts a numeric vehicle task ID (e.g., "1702") to return journeys associated with the specified vehicle task.

vehicleId
string

Filters journeys by vehicle id identifier. Accepts a string to return journeys associated with the specified vehicle id.

line
string

Filters journeys by line identifier. Accepts a line number or code (e.g., "70") and returns journeys operating on that line, including details like line reference ("RUT:Line:70"), public code, and transport mode information.

lat
string

Specifies the latitude coordinate for location-based journey queries. Used in combination with the 'lon' parameter to find journeys near a specific geographic location.

lon
string

Specifies the longitude coordinate for location-based journey queries. Used in combination with the 'lat' parameter to find journeys near a specific geographic location.

direction
string (JourneyDirectionCode)
Example: direction=ANY # Any direction.&direction=NONE # No direction (dead-run journeys).&direction=INBOUND # Inbound to city center.&direction=OUTBOUND # Outbound from city center.

Line direction code, indicating direction of line relative to city center.

fromDateTime
string

First arrival / departure date in ISO 8601 date-time format with time-zone offset. If not set, search result may be limited to current day.

toDateTime
string

Last arrival / departure date in ISO 8601 date-time format with time-zone offset. If not set, search result may be limited to current day.

strictServiceWindowIntersection
boolean

if fromDateTime and toDateTime should be matched by strict intersection rules, false if not assigned

includeCalls
boolean

Flag indicating if returned journeys should include call data or not (default: false).

limit
integer

Maximum number of items to return in response. Default limit is 20 and maximum allowed value is 200.

offset
integer

Item offset for returned response.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "items": [
    ],
  • "page": {
    }
}

findLines

Return list of unique lines matching search criteria.

Authorizations:
bearerAuth
query Parameters
query
string

Lines search query string.

limit
integer

Maximum number of items to return in response. Default limit is 20 and maximum allowed value is 200.

offset
integer

Item offset for returned response.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "items": [
    ],
  • "page": {
    }
}

findStopPoints

Return list of unique stop points matching search criteria.

Authorizations:
bearerAuth
query Parameters
query
string

Stop point search query string.

limit
integer

Maximum number of items to return in response. Default limit is 20 and maximum allowed value is 200.

offset
integer

Item offset for returned response.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "items": [
    ],
  • "page": {
    }
}

deviation

Service deviation management

findServiceDeviations

Return a list of service deviations matching a given set of criteria.

Authorizations:
bearerAuth
query Parameters
query
string

General-purpose search parameter that can accept various identifiers.

fromDateTime
string

Optional dateTime to filter out deviations before this point in time. ISO-8601 format, including time-zone offset (format: YYYY-MM-DD_T_hh:mm:ssZ)

toDateTime
string

Optional dateTime to filter out deviations after this point in time. ISO-8601 format, including time-zone offset (format: YYYY-MM-DD_T_hh:mm:ssZ)

includeCalls
boolean

Flag indicating if returned journeys should include call data or not (default: false).

includeTargets
boolean

Flag indicating if returned deviations / mitigations should include resolved journey target data or not (default: false). Resolved journey targets represent the concrete dated journeys affected by the deviation or mitigation, as resolved from the provided impact spec of the request.

clientMetadataKey
string <= 255 characters

Filter by client metadata key. When combined with clientMetadataValue, returns only items that have a matching client metadata entry.

clientMetadataValue
string <= 10240 characters

Filter by client metadata value. Only applied when clientMetadataKey is also provided.

limit
integer

Maximum number of items to return in response. Default limit is 20 and maximum allowed value is 200.

offset
integer

Item offset for returned response.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "items": [
    ],
  • "page": {
    }
}

postServiceDeviation

Post a service deviation registration request

Authorizations:
bearerAuth
header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Service deviation registration request

object (ServiceDeviationSpec)
action
string (PostRequestType)

Post Request Type

Array of objects (MetadataEntry)
comment
string

Responses

Request samples

Content type
application/json
{
  • "spec": {
    },
  • "action": [
    ],
  • "metadata": [
    ],
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    },
  • "deviation": {
    }
}

getServiceDeviation

Return a service deviation with a given id.

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

query Parameters
includeCalls
boolean

Flag indicating if returned journeys should include call data or not (default: false).

includeTargets
boolean

Flag indicating if returned deviations / mitigations should include resolved journey target data or not (default: false). Resolved journey targets represent the concrete dated journeys affected by the deviation or mitigation, as resolved from the provided impact spec of the request.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "deviation": {
    }
}

updateServiceDeviation

Update a service deviation with a given id.

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Service deviation update request

object (ServiceDeviationSpec)
action
string (PostRequestType)

Post Request Type

Array of objects (MetadataEntry)
comment
string

Responses

Request samples

Content type
application/json
{
  • "spec": {
    },
  • "action": [
    ],
  • "metadata": [
    ],
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    },
  • "deviation": {
    }
}

listDeviationMetadata

Return all metadata entries

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": [
    ]
}

postDeviationMetadata

Create, update or delete metadata entries

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Array of metadata keys and values to set

action
required
string (PostRequestType)

Post Request Type

required
Array of objects (MetadataEntry)
comment
string

Responses

Request samples

Content type
application/json
{
  • "action": [
    ],
  • "metadata": [
    ],
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    }
}

getDeviationMetadata

Return a specific metadata entry by key

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

key
required
string <= 255 characters

Metadata key identifier

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": {
    }
}

listDeviationClientMetadata

Return all client metadata entries for the authenticated client on this deviation

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": [
    ]
}

postDeviationClientMetadata

Create, update or delete a client metadata entry (upsert)

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Client metadata keys and values to set

action
required
string (PostRequestType)

Post Request Type

required
Array of objects (ClientMetadataPostRequestItem)
comment
string

Responses

Request samples

Content type
application/json
{
  • "action": [
    ],
  • "metadata": [
    ],
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    }
}

getDeviationClientMetadata

Return a specific client metadata entry by key

Authorizations:
bearerAuth
path Parameters
serviceDeviationId
required
string

Unique identifier of service deviation.

key
required
string <= 255 characters

Client metadata key identifier

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": {
    }
}

getServiceDeviationReasonCodes

Return a list of service deviation reason codes

Authorizations:
bearerAuth
query Parameters
serviceDeviationCode
string (ServiceDeviationCode)
Example: serviceDeviationCode=DELAY # Service will be delayed.&serviceDeviationCode=BYPASS # A call is not serviced, but bypassed due to lack of waiting passengers or other reason.&serviceDeviationCode=NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.&serviceDeviationCode=NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on.

Service deviation code, indicating type of service deviation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "groups": [
    ],
  • "reasons": [
    ]
}

mitigation

Service mitigation management

findServiceMitigations

Return a list of service mitigations matching a given set of criteria.

Authorizations:
bearerAuth
query Parameters
query
string

General-purpose search parameter that can accept various identifiers.

fromDateTime
string

Optional dateTime to filter out deviations before this point in time. ISO-8601 format, including time-zone offset (format: YYYY-MM-DD_T_hh:mm:ssZ)

toDateTime
string

Optional dateTime to filter out deviations after this point in time. ISO-8601 format, including time-zone offset (format: YYYY-MM-DD_T_hh:mm:ssZ)

includeCalls
boolean

Flag indicating if returned journeys should include call data or not (default: false).

includeTargets
boolean

Flag indicating if returned deviations / mitigations should include resolved journey target data or not (default: false). Resolved journey targets represent the concrete dated journeys affected by the deviation or mitigation, as resolved from the provided impact spec of the request.

clientMetadataKey
string <= 255 characters

Filter by client metadata key. When combined with clientMetadataValue, returns only items that have a matching client metadata entry.

clientMetadataValue
string <= 10240 characters

Filter by client metadata value. Only applied when clientMetadataKey is also provided.

limit
integer

Maximum number of items to return in response. Default limit is 20 and maximum allowed value is 200.

offset
integer

Item offset for returned response.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "items": [
    ],
  • "page": {
    }
}

postServiceMitigation

Post a service mitigation registration request

Authorizations:
bearerAuth
header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Service mitigation registration request

object (ServiceMitigationSpec)
action
string (PostRequestType)

Post Request Type

Array of objects (MetadataEntry)
draft
boolean
comment
string

Responses

Request samples

Content type
application/json
{
  • "spec": {
    },
  • "action": [
    ],
  • "metadata": [
    ],
  • "draft": true,
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    },
  • "mitigation": {
    }
}

getServiceMitigation

Return a service mitigation with a given id.

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

query Parameters
includeCalls
boolean

Flag indicating if returned journeys should include call data or not (default: false).

includeTargets
boolean

Flag indicating if returned deviations / mitigations should include resolved journey target data or not (default: false). Resolved journey targets represent the concrete dated journeys affected by the deviation or mitigation, as resolved from the provided impact spec of the request.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "mitigation": {
    }
}

updateServiceMitigation

Update a service mitigation with a given id.

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Service mitigation update request

object (ServiceMitigationSpec)
action
string (PostRequestType)

Post Request Type

Array of objects (MetadataEntry)
draft
boolean
comment
string

Responses

Request samples

Content type
application/json
{
  • "spec": {
    },
  • "action": [
    ],
  • "metadata": [
    ],
  • "draft": true,
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    },
  • "mitigation": {
    }
}

listMitigationMetadata

Return all metadata entries on this mitigation

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": [
    ]
}

postMitigationMetadata

Create, update or delete metadata entries

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Metadata key and value to set

action
required
string (PostRequestType)

Post Request Type

required
Array of objects (MetadataEntry)
comment
string

Responses

Request samples

Content type
application/json
{
  • "action": [
    ],
  • "metadata": [
    ],
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    }
}

getMitigationMetadata

Return a specific metadata entry by key

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

key
required
string <= 255 characters

Metadata key identifier

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": {
    }
}

listMitigationClientMetadata

Return all client metadata entries for the authenticated client

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": [
    ]
}

postMitigationClientMetadata

Create or update client metadata entries

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Request Body schema: application/json
required

Client metadata keys and values to set

action
required
string (PostRequestType)

Post Request Type

required
Array of objects (ClientMetadataPostRequestItem)
comment
string

Responses

Request samples

Content type
application/json
{
  • "action": [
    ],
  • "metadata": [
    ],
  • "comment": "string"
}

Response samples

Content type
application/json
{
  • "result": {
    }
}

getMitigationClientMetadata

Return a specific client metadata entry by key

Authorizations:
bearerAuth
path Parameters
serviceMitigationId
required
string

Unique identifier of service mitigation.

key
required
string <= 255 characters

Client metadata key identifier

header Parameters
X-ADT-Auth
string

Internal authentication metadata used by system implementation. Any value set here by a client will be ignored.

X-Trace-Id
string

Optional trace id for request. May be used to trace multiple requests as part of the same "operation" or "process". If set, should be different from X-Request-Id header.

X-Client-Id
string

Optional client id for request. May be used to identify client system by name or other identifier. Note that this is only treated as additional process metadata and not connected to authorization in any way.

X-Request-Id
string

Optional request id for request. Request id provided by client should be unique per request. For identifying multiple requests as belonging to the same group of requests when doing retries, parallel request processing or similar, see X-Trace-Id header.

X-Operator-Id
string

Optional operator id for request. Required by clients with access to more than one PTO. Operator id on the form 'CodeSpace:Operator:number' Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

X-Authority-Id
string

Optional authority id for request. Required by clients with access to more than one PTA. Ref: https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces

Responses

Response samples

Content type
application/json
{
  • "result": {
    },
  • "metadata": {
    }
}