List Vehicle Assignments
GEThttps://secure.fleetio.com/api/v1/vehicle_assignments
Returns a list of vehicle assignments.
Request
Query Parameters
The start cursor for Keyset pagination.
Possible values: >= 2
and <= 100
The number of records per page to return
50
filter object
sort object
Responses
- 200
- 400
- 401
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
The current start cursor of the records returned.
The next cursor to retrieve the next page of records.
The maxumum number of records returned.
The number of remaining records including the returned records, up to a maximum of 500.
filtered_by object[]
sorted_by object[]
records object[]
{
"start_cursor": "string",
"next_cursor": "string",
"per_page": 0,
"estimated_remaining_count": 0,
"filtered_by": [
{
"contact_id": {
"eq": "string"
}
},
{
"vehicle_id": {
"eq": "string"
}
},
{
"ended_at": {
"lt": "string"
}
},
{
"created_at": {
"lt": "string"
}
},
{
"updated_at": {
"lt": "string"
}
}
],
"sorted_by": [
{
"started_at": "asc"
},
{
"ended_at": "asc"
},
{
"created_at": "asc"
},
{
"updated_at": "asc"
},
{
"id": "asc"
}
],
"records": [
{
"id": 0,
"vehicle_id": 0,
"contact_id": 0,
"started_at": "2023-03-14T13:46:27-06:00",
"ended_at": "2023-03-14T13:46:27-06:00",
"current": false,
"future": false,
"starting_meter_entry_value": 0,
"ending_meter_entry_value": 0,
"comments_count": 0,
"attachment_permissions": {
"read_photos": true,
"manage_photos": true,
"read_documents": true,
"manage_documents": true
},
"contact": {
"id": 0,
"email": "string",
"name": "string",
"group_id": 0,
"default_image_url": "string"
},
"vehicle": {
"id": 0,
"name": "string",
"color": "string",
"license_plate": "string",
"vin": "string",
"year": "string",
"make": "string",
"model": "string",
"trim": "string",
"registration_expiration_month": 0,
"registration_state": "string",
"default_image_url_small": "string"
}
}
]
}
The format or parameters of the request was invalid
- application/json
- Schema
- Example (auto)
Schema
errors object
{
"errors": {}
}
Request could not be authenticated
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Something unexpected happened
- application/json
- Schema
- Example (auto)
Schema
Possible values: >= 400
and <= 599
A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization.
A human-readable explanation specific to this occurrence of the problem.
A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.
{
"status": 0,
"title": "string",
"detail": "string",
"instance": "string"
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64". You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
- curl
- ruby
- python
- csharp
- go
- java
- nodejs
- php
- CURL
curl -L 'https://secure.fleetio.com/api/v1/vehicle_assignments' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>' \
-H 'Account-Token: <Authorization>'