Download OpenAPI specification:
Definitions for Assignment Gateway Public API
{- "issuer": "string",
- "token_endpoint": "string",
- "jwks_uri": "string",
- "scopes_supported": [
- "string"
], - "response_types_supported": [
- "string"
], - "subject_types_supported": [
- "string"
], - "id_token_signing_alg_values_supported": [
- "string"
]
}
Endpoint for exchanging credentials for tokens (access token and ID token)
grant_type | string |
scope | string |
{- "access_token": "string",
- "token_type": "Bearer",
- "expires_in": 0,
- "scope": "string",
- "id_token": "string"
}
Post an assignment attempt to sign on / sign off a vehicle.
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 | 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-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 |
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. |
{- "vehicleId": "string",
- "signOn": {
- "mqttRouting": {
- "operatorId": "string",
- "authorityId": "string",
- "vehicleId": "string"
}, - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
]
}, - "signOff": {
- "code": [
- "CANCELLED",
- "FINISHED"
]
}
}
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "vehicleState": {
- "assigned": true,
- "mqttRouting": {
- "operatorId": "string",
- "authorityId": "string",
- "vehicleId": "string"
}, - "adtVersion": "string",
- "journeys": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "metadata": [
- {
- "key": null,
- "value": null
}
], - "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceDeviationId": "string"
}
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
], - "description": "string"
}
}
Look up a vehicle's (assignment) state.
vehicleId required | string Unique vehicle identifier |
includeCalls | boolean Flag indicating if returned journeys should include call data or not (default: |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "vehicleState": {
- "assigned": true,
- "mqttRouting": {
- "operatorId": "string",
- "authorityId": "string",
- "vehicleId": "string"
}, - "adtVersion": "string",
- "journeys": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "metadata": [
- {
- "key": null,
- "value": null
}
], - "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceDeviationId": "string"
}
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
], - "description": "string"
}
}
Find journeys for a given set of search criteria.
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. |
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. |
includeCalls | boolean Flag indicating if returned journeys should include call data or not (default: |
limit | integer Maximum number of items to return in response. |
offset | integer Item offset for returned response. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "items": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceDeviationId": "string"
}
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
], - "page": {
- "limit": 0,
- "offset": 0,
- "itemCount": 0
}
}
Return list of unique lines matching search criteria.
query | string Lines search query string. |
limit | integer Maximum number of items to return in response. |
offset | integer Item offset for returned response. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "items": [
- {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}
], - "page": {
- "limit": 0,
- "offset": 0,
- "itemCount": 0
}
}
Return list of unique stop points matching search criteria.
query | string Stop point search query string. |
limit | integer Maximum number of items to return in response. |
offset | integer Item offset for returned response. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "items": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "name": "string",
- "publicCode": "string"
}
], - "page": {
- "limit": 0,
- "offset": 0,
- "itemCount": 0
}
}
Return a list of service deviations matching a given set of criteria.
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) |
limit | integer Maximum number of items to return in response. |
offset | integer Item offset for returned response. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "items": [
- {
- "id": "string",
- "spec": {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "delayMinutes": 0,
- "operatorExempt": true,
- "updateAssignedVehicles": true
}
}, - "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceDeviationId": "string"
}
}
], - "page": {
- "limit": 0,
- "offset": 0,
- "itemCount": 0
}
}
Post a service deviation registration request
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 | 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-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 |
Service deviation registration request
object (ServiceDeviationSpec) | |
action | string (PostRequestType) Post Request Type |
comment | string |
{- "spec": {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "delayMinutes": 0,
- "operatorExempt": true,
- "updateAssignedVehicles": true
}
}, - "action": [
- "CREATE",
- "UPDATE",
- "DELETE",
- "APPROVE",
- "METADATA"
], - "comment": "string"
}
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "deviation": {
- "id": "string",
- "spec": {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "delayMinutes": 0,
- "operatorExempt": true,
- "updateAssignedVehicles": true
}
}, - "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceDeviationId": "string"
}
}
}
Return a service deviation with a given id.
serviceDeviationId required | string Unique identifier of service deviation. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "deviation": {
- "id": "string",
- "spec": {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "delayMinutes": 0,
- "operatorExempt": true,
- "updateAssignedVehicles": true
}
}, - "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceDeviationId": "string"
}
}
}
Update a service deviation with a given id.
serviceDeviationId required | string Unique identifier of service deviation. |
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 | 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-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 |
Service deviation update request
object (ServiceDeviationSpec) | |
action | string (PostRequestType) Post Request Type |
comment | string |
{- "spec": {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "delayMinutes": 0,
- "operatorExempt": true,
- "updateAssignedVehicles": true
}
}, - "action": [
- "CREATE",
- "UPDATE",
- "DELETE",
- "APPROVE",
- "METADATA"
], - "comment": "string"
}
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "deviation": {
- "id": "string",
- "spec": {
- "code": [
- "DELAY # Service will be delayed.",
- "NO_SERVICE # Journey(s), line(s) or call(s) will not be serviced by operator.",
- "NO_SIGN_ON # Planned journey(s), line(s) or call(s) will be serviced, but operator will not sign on."
], - "reason": {
- "code": "string",
- "comment": "string"
}, - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "delayMinutes": 0,
- "operatorExempt": true,
- "updateAssignedVehicles": true
}
}, - "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceDeviationId": "string"
}
}
}
Return a list of service deviation reason codes
serviceDeviationCode | string (ServiceDeviationCode) Example: serviceDeviationCode=DELAY # Service will be delayed.&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. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "groups": [
- {
- "code": "string",
- "title": "string",
- "description": "string"
}
], - "reasons": [
- {
- "code": "string",
- "title": "string",
- "description": "string",
- "groupCode": "string",
- "validDeviationCodes": [ ]
}
]
}
Return a list of service mitigations matching a given set of criteria.
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) |
limit | integer Maximum number of items to return in response. |
offset | integer Item offset for returned response. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "items": [
- {
- "id": "string",
- "spec": {
- "code": [
- "CANCELLATION",
- "REPLACEMENT_SERVICE",
- "STANDBY_VEHICLE_PLANNED"
], - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "mitigates": [
- "string"
], - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "operatorId": "string",
- "transportMode": [
- "BUS"
], - "updateAssignedVehicles": true
}
}, - "draft": true,
- "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceMitigationId": "string"
}, - "replacements": [
- {
- "replaced": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- null
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": null,
- "arrivalDateTime": null,
- "departureDateTime": null
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
], - "replacements": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- null
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": null,
- "arrivalDateTime": null,
- "departureDateTime": null
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
]
}
]
}
], - "page": {
- "limit": 0,
- "offset": 0,
- "itemCount": 0
}
}
Post a service mitigation registration request
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 | 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-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 |
Service mitigation registration request
object (ServiceMitigationSpec) | |
action | string (PostRequestType) Post Request Type |
draft | boolean |
comment | string |
{- "spec": {
- "code": [
- "CANCELLATION",
- "REPLACEMENT_SERVICE",
- "STANDBY_VEHICLE_PLANNED"
], - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "mitigates": [
- "string"
], - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "operatorId": "string",
- "transportMode": [
- "BUS"
], - "updateAssignedVehicles": true
}
}, - "action": [
- "CREATE",
- "UPDATE",
- "DELETE",
- "APPROVE",
- "METADATA"
], - "draft": true,
- "comment": "string"
}
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "mitigation": {
- "id": "string",
- "spec": {
- "code": [
- "CANCELLATION",
- "REPLACEMENT_SERVICE",
- "STANDBY_VEHICLE_PLANNED"
], - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "mitigates": [
- "string"
], - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "operatorId": "string",
- "transportMode": [
- "BUS"
], - "updateAssignedVehicles": true
}
}, - "draft": true,
- "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceMitigationId": "string"
}, - "replacements": [
- {
- "replaced": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": null,
- "reason": null,
- "metadata": [ ],
- "lifecycle": null
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
], - "replacements": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": null,
- "reason": null,
- "metadata": [ ],
- "lifecycle": null
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
]
}
]
}
}
Return a service mitigation with a given id.
serviceMitigationId required | string Unique identifier of service mitigation. |
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 | 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-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 |
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "mitigation": {
- "id": "string",
- "spec": {
- "code": [
- "CANCELLATION",
- "REPLACEMENT_SERVICE",
- "STANDBY_VEHICLE_PLANNED"
], - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "mitigates": [
- "string"
], - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "operatorId": "string",
- "transportMode": [
- "BUS"
], - "updateAssignedVehicles": true
}
}, - "draft": true,
- "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceMitigationId": "string"
}, - "replacements": [
- {
- "replaced": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": null,
- "reason": null,
- "metadata": [ ],
- "lifecycle": null
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
], - "replacements": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": null,
- "reason": null,
- "metadata": [ ],
- "lifecycle": null
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
]
}
]
}
}
Update a service mitigation with a given id.
serviceMitigationId required | string Unique identifier of service mitigation. |
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 | 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-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 |
Service mitigation update request
object (ServiceMitigationSpec) | |
action | string (PostRequestType) Post Request Type |
draft | boolean |
comment | string |
{- "spec": {
- "code": [
- "CANCELLATION",
- "REPLACEMENT_SERVICE",
- "STANDBY_VEHICLE_PLANNED"
], - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "mitigates": [
- "string"
], - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "operatorId": "string",
- "transportMode": [
- "BUS"
], - "updateAssignedVehicles": true
}
}, - "action": [
- "CREATE",
- "UPDATE",
- "DELETE",
- "APPROVE",
- "METADATA"
], - "draft": true,
- "comment": "string"
}
{- "result": {
- "status": {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}, - "details": [
- {
- "code": [
- "OK # OK / No error",
- "ERR_CLIENT # Client Error",
- "ERR_SERVER # Server Error"
], - "reason": [
- "OK # OK / No reason",
- "INFO # Informational only. Description field(s) may contain additional details.",
- "TIMEOUT # A timeout (error) occurred.",
- "BAD_REQUEST # The provided request contained one or more error(s).",
- "INTERNAL_ERROR # An internal error occurred.",
- "CALL_SPEC_ERROR # Missing or invalid call specification(s).",
- "LINE_SPEC_ERROR # Missing or invalid line specification(s).",
- "JOURNEY_SPEC_ERROR # Missing or invalid journey specification(s)",
- "SERVICE_WINDOW_ERROR # Missing or invalid service window(s) in specification(s).",
- "CALL_NOT_FOUND # No call(s) matching provided specification(s).",
- "LINE_NOT_FOUND # No line(s) matching provided specification(s).",
- "JOURNEY_NOT_FOUND # No journey(s) matching provided specification(s).",
- "STOP_POINT_NOT_FOUND # No stop point(s) matching provided specification(s).",
- "VEHICLE_ID_ERROR # Missing or invalid vehicle id in request.",
- "OPERATOR_ID_ERROR # Missing or invalid operator id in request.",
- "DEVIATION_CODE_ERROR # Missing or invalid service deviation code.",
- "DEVIATION_REASON_CODE_ERROR # Missing or invalid service deviation reason code.",
- "ASSIGNMENT_ATTEMPT_EXPIRED # Assignment attempt has expired (timeout error).",
- "ASSIGNMENT_SIGN_OFF_CODE_ERROR # Missing or invalid assignment attempt sign-off code."
], - "description": "string"
}
]
}, - "mitigation": {
- "id": "string",
- "spec": {
- "code": [
- "CANCELLATION",
- "REPLACEMENT_SERVICE",
- "STANDBY_VEHICLE_PLANNED"
], - "impact": {
- "lines": [
- {
- "spec": {
- "lineId": "string",
- "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
]
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
], - "journeys": [
- {
- "calls": [
- {
- "stopPoint": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}
], - "journey": {
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
}
], - "stopPoints": [
- {
- "spec": {
- "quayId": "NSR:Quay:1337",
- "stopPointId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}
}
]
}, - "duration": {
- "start": "string",
- "end": "string"
}, - "mitigates": [
- "string"
], - "metadata": [
- {
- "key": [
- "PTO_CASE_REF # A PTO case reference.",
- "PTA_CASE_REF # A PTA case reference.",
- "SERVICE_DEVIATION_REF # A service deviation reference.",
- "SERVICE_MITIGATION_REF # A service mitigation reference."
], - "value": "string"
}
], - "parameters": {
- "vehicleId": "string",
- "operatorId": "string",
- "transportMode": [
- "BUS"
], - "updateAssignedVehicles": true
}
}, - "draft": true,
- "lifecycle": {
- "created": "string",
- "modified": "string",
- "serviceMitigationId": "string"
}, - "replacements": [
- {
- "replaced": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": null,
- "reason": null,
- "metadata": [ ],
- "lifecycle": null
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
], - "replacements": [
- {
- "name": "string",
- "spec": {
- "lineId": "string",
- "journeyId": "string",
- "firstDepartureDateTime": "string"
}, - "journeyIds": {
- "vehicleJourneyId": "string",
- "serviceJourneyId": "string",
- "datedServiceJourneyId": "string"
}, - "serviceWindow": {
- "start": "string",
- "end": "string"
}, - "line": {
- "name": "string",
- "lineId": "string",
- "publicCode": "string",
- "textColor": "string",
- "backgroundColor": "string"
}, - "direction": [
- "ANY # Any direction.",
- "NONE # No direction (dead-run journeys).",
- "INBOUND # Inbound to city center.",
- "OUTBOUND # Outbound from city center."
], - "vehicleTaskId": "string",
- "state": {
- "assigned": true,
- "deviationState": {
- "omitted": true,
- "partiallyOmitted": true,
- "operatingWithoutSignOn": true,
- "serviceDeviations": [
- {
- "code": null,
- "reason": null,
- "metadata": [ ],
- "lifecycle": null
}
]
}, - "mitigationState": {
- "cancelled": true,
- "partiallyCancelled": true,
- "standbyVehiclePlanned": true
}
}, - "calls": [
- {
- "spec": {
- "stopPoint": {
- "quayId": null,
- "stopPointId": null
}, - "arrivalDateTime": "string",
- "departureDateTime": "string"
}, - "behaviourType": "NO_SERVICE # Stop point is not serviced",
- "originalBehaviourType": "NO_SERVICE # Stop point is not serviced",
- "destinationDisplayText": "string"
}
]
}
]
}
]
}
}