For the complete documentation index, see llms.txt. This page is also available as Markdown.

Workspaces

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

Workspaces

get
/v2/fleet/workspaces

Returns the list of all workspaces available

Authorizations
x-access-tokenstringRequired

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.

Responses
200

List of equipment

application/json
get/v2/fleet/workspaces
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
/v2/fleet/equipment/assetWorkspaces/linkAssetToWorkspaces

Add asset workspaces data with assetId or (serialNumber AND make) of Asset and workspace names

Authorizations
x-access-tokenstringRequired

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.

Body
assetIdnumberOptional
serialNumberstringOptional
makestringOptional
workspaceNamesstring[]Optional
Responses
200

Equipment has been added

application/json
statusstringOptionalExample: OK
post/v2/fleet/equipment/assetWorkspaces/linkAssetToWorkspaces
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"
}

Remove Equipment from Workspaces

delete
/v2/fleet/equipment/assetWorkspaces/linkAssetToWorkspaces

delete link asset and workspaces data with assetId or (serialNumber AND make) of Asset and workspace names

Authorizations
x-access-tokenstringRequired

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.

Body
assetIdnumberOptional
serialNumberstringOptional
makestringOptional
workspaceNamesstring[]Optional
Responses
200

Equipment has been unlink between asset and workspace

application/json
statusstringOptionalExample: OK
delete/v2/fleet/equipment/assetWorkspaces/linkAssetToWorkspaces
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?