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
Authorizations
Responses
200
List of equipment
application/json
401
Unable to authenticate the token
get
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
Authorizations
Body
tokenstringRequired
Obtained with a successful login
assetIdnumberOptional
serialNumberstringOptional
makestringOptional
workspaceNamesstring[]Optional
Responses
200
Equipment has been added
application/json
400
Error invalid request
application/json
401
Unable to authenticate the token
500
An error occurred while processing the request
application/json
post
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: 90
{
"token": "text",
"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
Authorizations
Body
tokenstringRequired
Obtained with a successful login
assetIdnumberOptional
serialNumberstringOptional
makestringOptional
workspaceNamesstring[]Optional
Responses
200
Equipment has been unlink between asset and workspace
application/json
400
Error invalid request
application/json
401
Unable to authenticate the token
500
An error occurred while processing the request
application/json
delete
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: 90
{
"token": "text",
"assetId": 1,
"serialNumber": "text",
"make": "text",
"workspaceNames": [
"text"
]
}
{
"status": "OK"
}