Workspaces
The following endpoints allow you to retrieve the list of all workspaces available and manage the link between equipments and workspaces.
Returns the list of all workspaces available
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
Unable to authenticate the token
GET /v2/fleet/workspaces HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Accept: */*
{
"data": {
"total": 1,
"rows": [
{
"name": "All fleet"
}
]
}
}Add asset workspaces data with assetId or (serialNumber AND make) of Asset and workspace names
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.
Equipment has been added
OKMissing parameters or invalid parameters
Unable to authenticate the token
An error occurred while processing the request
POST /v2/fleet/equipment/assetWorkspaces/linkAssetToWorkspaces HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"assetId": 1,
"serialNumber": "text",
"make": "text",
"workspaceNames": [
"text"
]
}{
"status": "OK"
}delete link asset and workspaces data with assetId or (serialNumber AND make) of Asset and workspace names
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.
Equipment has been unlink between asset and workspace
OKMissing parameters or invalid parameters
Unable to authenticate the token
An error occurred while processing the request
DELETE /v2/fleet/equipment/assetWorkspaces/linkAssetToWorkspaces HTTP/1.1
Host: api.hiboo.io
x-access-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"assetId": 1,
"serialNumber": "text",
"make": "text",
"workspaceNames": [
"text"
]
}{
"status": "OK"
}Last updated
Was this helpful?