Models
Get Models
API Documentation
Governance
- Organisations
- Schemes
- Work Orders
- Permits
- Operations
- Properties
- Streets
Data Capture
- Forms
- Form Categories
- Submissions
- Submission Versions
Operations
- Reinstatements
Assets
- Vehicles
- Manufacturers
- Models
Admin
- IAM
Models
Get Models
Returns all models
GET
/
v3
/
assets
/
vehicles
/
models
curl --request GET \
--url https://api.ctrl-hub.com/v3/assets/vehicles/models \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"type": "model",
"id": "f99beb4c-9add-42d0-b94d-03a22506229e",
"attributes": {
"name": "1 Series"
},
"relationships": {
"vehicle_manufacturer": {
"data": {
"type": "vehicle_manufacturers",
"id": "c9927007-a8e3-46bc-b507-7867b114bef5"
}
}
},
"links": {
"self": "https://api.ctrl-hub.com/v3/assets/vehicles/manufacturers/5852cf16-8ec8-4aba-809e-f8d828772c4e"
}
}
],
"meta": {
"counts": {
"limit": 10
},
"page": {
"limit": 10,
"offset": {
"current": 20,
"next": 30,
"previous": 10
}
}
},
"links": {
"current": "https://api.ctrl-hub.com/v3/assets/vehicles/models?limit=10&offset=20",
"next": "https://api.ctrl-hub.com/v3/assets/vehicles/models?limit=10&offset=30",
"previous": "https://api.ctrl-hub.com/v3/assets/vehicles/models?limit=10&offset=10"
}
}
Sort Support
Resources can be sorted by name
, slug
, status
or created_at
Authorizations
To understand how to authenticate, see the auth docs
Query Parameters
Limit the number of resources returned by the API
Offset for resources returned by the API
A field in the resource to sort results with. Not all attributes are supported, please see the Object Model for sortable fields.
Response
200
application/json
The resource type
Available options:
model
Example:
"model"
The ID of the model
Example:
"f99beb4c-9add-42d0-b94d-03a22506229e"
The id of users who are owners of the organisation
curl --request GET \
--url https://api.ctrl-hub.com/v3/assets/vehicles/models \
--header 'Authorization: Bearer <token>'
{
"data": [
{
"type": "model",
"id": "f99beb4c-9add-42d0-b94d-03a22506229e",
"attributes": {
"name": "1 Series"
},
"relationships": {
"vehicle_manufacturer": {
"data": {
"type": "vehicle_manufacturers",
"id": "c9927007-a8e3-46bc-b507-7867b114bef5"
}
}
},
"links": {
"self": "https://api.ctrl-hub.com/v3/assets/vehicles/manufacturers/5852cf16-8ec8-4aba-809e-f8d828772c4e"
}
}
],
"meta": {
"counts": {
"limit": 10
},
"page": {
"limit": 10,
"offset": {
"current": 20,
"next": 30,
"previous": 10
}
}
},
"links": {
"current": "https://api.ctrl-hub.com/v3/assets/vehicles/models?limit=10&offset=20",
"next": "https://api.ctrl-hub.com/v3/assets/vehicles/models?limit=10&offset=30",
"previous": "https://api.ctrl-hub.com/v3/assets/vehicles/models?limit=10&offset=10"
}
}