Download OpenAPI specification:
This page provides the API documentation for the Digital Traffic Regulation Orders (D-TRO) service.
Exchange client ID and secret using HTTP basic authentication. This returns an access token to use in all subsequent requests.
Token grant request parameters
grant_type required | string Default: "client_credentials" Value: "client_credentials" |
{- "refresh_token_expires_in": "0",
- "api_product_list": "[int-publisher]",
- "api_product_list_json": [
- "int-publisher"
], - "organization_name": "dft-dtro-int",
- "developer.email": "user@example.com",
- "token_type": "BearerToken",
- "issued_at": "1751369026823",
- "client_id": "GXvLpQeYzWmKjRuTnAoXcVbNqLzHdFgTyUiOpAsDfGhJkLzXcVbNmQwErTyUiOpAs",
- "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9",
- "application_name": "c646ba58-a094-4b33-bfb5-41494dd749ec",
- "scope": "dsp",
- "expires_in": "1799",
- "refresh_count": "0",
- "status": "approved"
}
Create a D-TRO record by submitting a JSON payload in the request body.
Object containing D-TRO details
schemaVersion required | string (SchemaVersion) Version of the schema to submit the D-TRO payload against |
object (DTROData) Object describing the D-TRO content |
{- "schemaVersion": "3.4.0",
- "data": {
- "source": {
- "actionType": "new",
- "currentTraOwner": 1,
- "provision": [
- {
- "actionType": "new",
- "orderReportingPoint": "permanentNoticeOfMaking",
- "provisionDescription": "Example",
- "reference": "A3448229-1DFA-48CD-A785-376ACB9F7C56",
- "regulatedPlace": [
- {
- "description": "Example",
- "type": "regulationLocation",
- "linearGeometry": {
- "direction": "bidirectional",
- "lateralPosition": "onKerb",
- "linestring": "SRID=27700;LINESTRING(444284 333253, 444284 333253)",
- "representation": "linear",
- "version": 1
}
}
], - "regulation": [
- {
- "isDynamic": false,
- "timeZone": "Europe/London",
- "condition": [
- {
- "timeValidity": {
- "start": null
}
}
]
}
]
}
], - "reference": "B2787FE2-AD74-432A-BB32-76FDB065F3E8",
- "section": "Example",
- "traAffected": [
- 1
], - "traCreator": 1,
- "troName": "Example"
}
}
}
{- "id": "0bead96d-1c15-4cab-91f3-d25e243601b5"
}
Create a D-TRO record by uploading a JSON file containing the D-TRO content.
file required | string <binary> JSON file contaning the D-TRO content |
{- "id": "0bead96d-1c15-4cab-91f3-d25e243601b5"
}
Update an existing D-TRO by submitting a JSON payload in the request body.
dtroId required | string <uuid> ID of the D-TRO to update |
Object describing the D-TRO
schemaVersion required | string (SchemaVersion) Version of the schema to submit the D-TRO payload against |
object (DTROData) Object describing the D-TRO content |
{- "schemaVersion": "3.4.0",
- "data": {
- "source": {
- "actionType": "new",
- "currentTraOwner": 1,
- "provision": [
- {
- "actionType": "new",
- "orderReportingPoint": "permanentNoticeOfMaking",
- "provisionDescription": "Example",
- "reference": "A3448229-1DFA-48CD-A785-376ACB9F7C56",
- "regulatedPlace": [
- {
- "description": "Example",
- "type": "regulationLocation",
- "linearGeometry": {
- "direction": "bidirectional",
- "lateralPosition": "onKerb",
- "linestring": "SRID=27700;LINESTRING(444284 333253, 444284 333253)",
- "representation": "linear",
- "version": 1
}
}
], - "regulation": [
- {
- "isDynamic": false,
- "timeZone": "Europe/London",
- "condition": [
- {
- "timeValidity": {
- "start": null
}
}
]
}
]
}
], - "reference": "B2787FE2-AD74-432A-BB32-76FDB065F3E8",
- "section": "Example",
- "traAffected": [
- 1
], - "traCreator": 1,
- "troName": "Example"
}
}
}
{- "id": "0bead96d-1c15-4cab-91f3-d25e243601b5"
}
dtroId required | string <uuid> ID of the D-TRO to update |
file required | string <binary> JSON file contaning the D-TRO content |
{- "id": "0bead96d-1c15-4cab-91f3-d25e243601b5"
}
Retrieves a published D-TRO by its ID.
id required | string <uuid> ID of the D-TRO to retrieve |
{- "id": "77be1c43-cf55-4aa8-b0e7-5af77f2dcc71",
- "schemaVersion": "3.4.0",
- "data": {
- "source": {
- "actionType": "new",
- "currentTraOwner": 1,
- "provision": [
- {
- "actionType": "new",
- "orderReportingPoint": "permanentNoticeOfMaking",
- "provisionDescription": "Example",
- "reference": "A3448229-1DFA-48CD-A785-376ACB9F7C56",
- "regulatedPlace": [
- {
- "description": "Example",
- "type": "regulationLocation",
- "linearGeometry": {
- "direction": "bidirectional",
- "lateralPosition": "onKerb",
- "linestring": "SRID=27700;LINESTRING(444284 333253, 444284 333253)",
- "representation": "linear",
- "version": 1
}
}
], - "regulation": [
- {
- "isDynamic": false,
- "timeZone": "Europe/London",
- "condition": [
- {
- "timeValidity": {
- "start": null
}
}
]
}
]
}
], - "reference": "B2787FE2-AD74-432A-BB32-76FDB065F3E8",
- "section": "Example",
- "traAffected": [
- 1
], - "traCreator": 1,
- "troName": "Example"
}
}, - "traName": "Some TRA"
}
Retrieve a list of D-TRO events (e.g. creations, updates, deletes) that match a given search criteria.
A search query object
pageSize required | integer Number of D-TROs to retrieve per page |
page required | integer Page number to retrieve |
since required | string <date-time> Return events where D-TRO creation is is on or after this datetime |
to required | string <date-time> Return events where D-TRO creation time is up to and including this datetime |
deletionTime | string <date-time> Deprecated Datetime the D-TRO was deleted. Deprecated - use |
deletedFrom | string <date-time> Datetime the D-TRO was deleted on, or after |
deletedTo | string <date-time> Datetime the D-TRO was deleted on, or before |
modificationTime | string <date-time> Deprecated Datetime the D-TRO was modified. Deprectaed - use |
modifiedFrom | string <date-time> Datetime the D-TRO was last modified on, or after |
modifiedTo | string <date-time> Datetime the D-TRO was last modified on, or before |
traCreator | integer D-TRO TRA creator |
currentTraOwner | integer D-TRO current TRA owner |
troName | string Name of the TRO |
regulationType | string The D-TRO regulation type |
regulatedPlaceType | string The D-TRO regulated place type |
vehicleType | string The D-TRO vehicle type |
orderReportingPoint | string The D-TRO order reporting point |
regulationStart | string <date-time> Return events where D-TRO regulation date is on or after this datetime |
regulationEnd | string <date-time> Return events where D-TRO regulation date is up to and including this datetime |
eventType | string Enum: "create" "update" "delete" The D-TRO event type |
{- "pageSize": 5,
- "page": 1,
- "since": "2025-01-01T09:00:00",
- "to": "2025-01-01T09:00:00",
- "deletionTime": "2025-01-01T09:00:00",
- "deletedFrom": "2025-01-01T09:00:00",
- "deletedTo": "2025-01-01T09:00:00",
- "modificationTime": "2025-01-01T09:00:00",
- "modifiedFrom": "2025-01-01T09:00:00",
- "modifiedTo": "2025-01-01T09:00:00",
- "traCreator": 1,
- "currentTraOwner": 1,
- "troName": "Example",
- "regulationType": "string",
- "regulatedPlaceType": "regulationLocation",
- "vehicleType": "car",
- "orderReportingPoint": "permanentNoticeOfMaking",
- "regulationStart": "2025-01-01T09:00:00",
- "regulationEnd": "2025-01-01T09:00:00",
- "eventType": "start"
}
{- "events": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "publicationTime": "2019-08-24T14:15:22Z",
- "traCreator": 0,
- "currentTraOwner": 0,
- "troName": "string",
- "regulationType": [
- "string"
], - "vehicleType": [
- "string"
], - "regulatedPlaceType": [
- "string"
], - "orderReportingPoint": [
- "string"
], - "regulationStart": [
- "2019-08-24T14:15:22Z"
], - "regulationEnd": [
- "2019-08-24T14:15:22Z"
], - "eventType": "create",
- "eventTime": "2019-08-24T14:15:22Z",
- "_links": {
- "self": "string"
}
}
], - "page": 0,
- "pageSize": 0,
- "totalCount": 0
}
A D-TRO object search criteria.
Array of objects or null (DfT.DTRO.Models.Filtering.SearchQuery) non-empty | |
page required | integer <int32> [ 1 .. 2147483647 ] |
pageSize required | integer <int32> [ 1 .. 50 ] |
{- "queries": [
- {
- "publicationTime": "2019-08-24T14:15:22Z",
- "modificationTime": "2019-08-24T14:15:22Z",
- "deletionTime": "2019-08-24T14:15:22Z",
- "traCreator": 0,
- "currentTraOwner": 0,
- "troName": "string",
- "regulationType": "string",
- "vehicleType": "string",
- "orderReportingPoint": "string",
- "regulatedPlaceType": "string",
- "regulationStart": {
- "operator": "=",
- "value": "2019-08-24T14:15:22Z"
}, - "regulationEnd": {
- "operator": "=",
- "value": "2019-08-24T14:15:22Z"
}
}
], - "page": 1,
- "pageSize": 1
}
{- "results": [
- {
- "troName": "string",
- "publicationTime": "2019-08-24T14:15:22Z",
- "trafficAuthorityCreatorId": 0,
- "trafficAuthorityOwnerId": 0,
- "regulationType": [
- "string"
], - "vehicleType": [
- "string"
], - "orderReportingPoint": [
- "string"
], - "regulatedPlaceTypes": [
- "string"
], - "regulationStart": [
- "2019-08-24T14:15:22Z"
], - "regulationEnd": [
- "2019-08-24T14:15:22Z"
], - "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"
}
], - "page": 0,
- "pageSize": 0,
- "totalCount": 0
}