Workspaces

The following endpoints allow you to retrieve the list of all workspaces available and manage the link between equipments and workspaces.

Workspaces

get

Returns the list of all workspaces available

Authorizations
Responses
200
List of equipment
application/json
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 Equipment to Workspaces

post

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
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"
}

Remove Equipment from Workspaces

delete

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
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"
}