You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: agency/README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,11 +32,11 @@ See the [Responses][responses] and [Error Messages][error-messages] sections.
32
32
33
33
### Authorization
34
34
35
-
When making requests, the Agency API expects `provider_id` to be part of the claims in a [JWT](https://jwt.io/)`access_token` in the `Authorization` header, in the form `Authorization: Bearer <access_token>`. The token issuance, expiration and revocation policies are at the discretion of the Agency.
35
+
When making requests, the Agency API expects `provider_id` to be part of the claims in a [JWT](https://jwt.io/)`access_token` in the `Authorization` header, in the form `Authorization: Bearer <access_token>`. The token issuance, expiration and revocation policies are at the discretion of the Agency.
36
36
37
37
## Vehicles
38
38
39
-
The `/vehicles` endpoint returns the specified vehicle (if a device_id is provided) or a list of known vehicles. Providers can only retrieve data for vehicles in their registered fleet.
39
+
The `/vehicles` endpoint returns the specified vehicle (if a device_id is provided) or a list of known vehicles. Providers can only retrieve data for vehicles in their registered fleet.
40
40
41
41
Endpoint: `/vehicles/{device_id}`
42
42
Method: `GET`
@@ -70,13 +70,13 @@ A vehicle record is as follows:
70
70
|`device_id`| UUID | Provided by Operator to uniquely identify a vehicle |
71
71
|`provider_id`| UUID | Issued by Agency and [tracked](../providers.csv)|
72
72
|`vehicle_id`| String | Vehicle Identification Number (vehicle_id) visible on vehicle |
73
-
|`type`| Enum |[Vehicle Type][vehicle-types]|
74
-
|`propulsion`| Enum[]| Array of [Propulsion Type][propulsion-types]; allows multiple values |
@@ -122,7 +122,7 @@ _No content returned on success._
122
122
123
123
## Vehicle - Update
124
124
125
-
The `/vehicles` update endpoint is used to update some mutable aspect of a vehicle. For now, only `vehicle_id`.
125
+
The `/vehicles` update endpoint is used to update some mutable aspect of a vehicle. For now, only `vehicle_id`.
126
126
127
127
Endpoint: `/vehicles/{device_id}`
128
128
Method: `PUT`
@@ -169,7 +169,7 @@ Body Params:
169
169
|`event_types`| Enum[]| Required | see [Vehicle Events][vehicle-events]|
170
170
|`timestamp`|[timestamp][ts]| Required | Date of last event update |
171
171
|`telemetry`|[Telemetry](#telemetry-data)| Required | Single point of telemetry |
172
-
|`trip_id`| UUID | Optional | UUID provided by Operator to uniquely identify the trip. Required for `trip_start`, `trip_end`, `trip_enter`, and `trip_leave` event types|
172
+
|`trip_id`| UUID | Optional | UUID provided by Operator to uniquely identify the trip. Required if `event_types` contains `trip_start`, `trip_end`, `trip_cancel`, `trip_enter_jurisdiction`, or `trip_leave_jurisdiction`|
0 commit comments