Fleet
The following endpoints allow you to retrieve the list of all equipments and manage their identity.
Returns the list of all equipments and their identity. This endpoint is paginated.
The numbers of items to return
20
The number of items to skip before starting to collect the result set
0
By default, customFields are not included. If set to one, the custom fields will be included in the response
0
By default, data sources related to the equipment are not included. If set to one, the data sources will be included in the response
0
GET /v2/fleet/equipments HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
{
"data": {
"total": 1,
"rows": [
{
"id": 1,
"name": "D8000-1",
"make": "Caterpillar",
"model": "8000",
"serialNumber": "YVR001988",
"workspaces": [
[
"Workspace 1",
"Workspace 2"
]
],
"customFields": [
{
"name": "Custom Field 1",
"value": "Value 1"
}
]
}
]
}
}
Returns the identity of a the requested equipment
ID of the equipment
By default, customFields are not included. If set to one, the custom fields will be included in the response
0
GET /v2/fleet/equipments/{id} HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
{
"data": {
"id": 1,
"name": "D8000-1",
"make": "Caterpillar",
"model": "8000",
"serialNumber": "YVR001988",
"workspaces": [
[
"Workspace 1",
"Workspace 2"
]
],
"customFields": [
{
"name": "Custom Field 1",
"value": "Value 1"
}
]
}
}
Marks the specified equipment as deleted. The equipment must be archived before it can be mark as deleted.
ID of the equipment
DELETE /v2/fleet/equipments/{id} HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
No content
Returns the current status of the specified equipment. The response includes metadata depending on the status
ID of the equipment
GET /v2/fleet/equipments/{id}/status HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
{
"status": "archived",
"metadata": {
"date": "2024-12-01T10:30:00Z",
"comment": "End-of-life; replaced by new model"
}
}
Marks the specified equipment as archived. Archived equipment will no longer be active, but can be restored later using the /status/active
endpoint.
ID of the equipment
Reason or note for archiving the equipment
Equipment is no longer in use and has been replaced
POST /v2/fleet/equipments/{id}/status/archived HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"comment": "Equipment is no longer in use and has been replaced"
}
No content
Restores a previously archived equipment to active status.
ID of the equipment
POST /v2/fleet/equipments/{id}/status/active HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
No content