DaaS API
Docs & Playground
Reference/Groups

Groupstoken required

The group tree: each group lists its children.

GET/daas/v1/groups

Parameters

NameTypeRequiredDescription
pageTokenstringoptionalThe nextPageToken of the previous page. Omit for the first page.
limitnumberoptionalRecords per call. Default and maximum 5,000.e.g. 100

Notes

Pages come in id order. When nextPageToken is not null, send it back for the next page.

Request

curl
curl 'https://private.stage.questar.io/v2/private-questar-units/daas/v1/groups?limit=100' \
  -H 'Authorization: Bearer YOUR_TOKEN'
URL
GET https://private.stage.questar.io/v2/private-questar-units/daas/v1/groups?limit=100

Response

200 OK
{
  "data": [
    {
      "id": "1-56352",
      "name": "North depot",
      "description": "",
      "reference": "",
      "childIds": [
        "1-56353"
      ]
    }
  ],
  "nextPageToken": "eyJvIjoiMS05OTkwMDAzMTEifQ"
}

Errors use HTTP status codes with a body of { error: { code, message } }: 400 a bad parameter, 401 a missing or invalid token, 404 no record with that id, 500 a server error.

400 Bad Request
{
  "error": {
    "code": "bad_request",
    "message": "History is limited to 24 hours per call"
  }
}