Equipment Groups
The following endpoints allow you to manage equipment groups, enabling you to link multiple equipments together.
Create a new group by linking multiple equipments together. At least 2 equipment IDs are required.
Token returned by POST /login: a JWT, valid for 10 days. Send it in the x-access-token header, as x-access-token: <token>. The Authorization: Bearer <token> header also works. When a request returns 401, call POST /login again.
List of equipment IDs to group together. At least 2 equipment IDs are required.
[1,2,3]Group successfully created
The unique identifier of the group
42List of equipment IDs in the group
[1,2,3]Invalid parameters. A group needs at least 2 equipments; when assetIds contains fewer than 2 IDs, details contains an entry with field assetIds and code TOO_SMALL.
Unable to authenticate the token
Insufficient permissions to create a group with these equipments
One or more equipments are already part of a group
POST /v2/fleet/groups HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"assetIds": [
1,
2,
3
]
}{
"id": 42,
"assetIds": [
1,
2,
3
]
}Update an existing equipment group by replacing the list of equipments. At least 2 equipment IDs are required.
Token returned by POST /login: a JWT, valid for 10 days. Send it in the x-access-token header, as x-access-token: <token>. The Authorization: Bearer <token> header also works. When a request returns 401, call POST /login again.
The unique identifier of the group to update.
List of equipment IDs to group together. At least 2 equipment IDs are required.
[1,2,3]Group successfully updated
The unique identifier of the group
42List of equipment IDs in the group
[1,2,3]Invalid parameters. A group needs at least 2 equipments; when assetIds contains fewer than 2 IDs, details contains an entry with field assetIds and code TOO_SMALL. When id is not a number, details contains an entry with field id and code INVALID_TYPE.
Unable to authenticate the token
Insufficient permissions to edit this group
Group not found
One or more equipments are already part of another group
PUT /v2/fleet/groups/{id} HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 20
{
"assetIds": [
1,
2,
3
]
}{
"id": 42,
"assetIds": [
1,
2,
3
]
}Delete an existing equipment group. This will unlink all equipments from the group.
Token returned by POST /login: a JWT, valid for 10 days. Send it in the x-access-token header, as x-access-token: <token>. The Authorization: Bearer <token> header also works. When a request returns 401, call POST /login again.
The unique identifier of the group to delete.
Group successfully deleted
No content
Invalid parameters. When id is not a number, details contains an entry with field id and code INVALID_TYPE.
Unable to authenticate the token
Insufficient permissions to delete this group
DELETE /v2/fleet/groups/{id} HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?