DaaS API
Docs & Playground
Reference/Zones by id

Zones by idtoken required

One record from zones. 404 when there is no such id.

GET/daas/v1/zones/{id}

Parameters

NameTypeRequiredDescription
idstringrequiredThe record id.e.g. 2-7140754

Request

curl
curl 'https://private.stage.questar.io/v2/private-questar-units/daas/v1/zones/2-7140754' \
  -H 'Authorization: Bearer YOUR_TOKEN'
URL
GET https://private.stage.questar.io/v2/private-questar-units/daas/v1/zones/2-7140754

Response

200 OK
{
  "id": "2-7140754",
  "name": "Sample Geofence",
  "comment": "",
  "points": [
    {
      "latitude": 6.620022,
      "longitude": 3.331188
    },
    {
      "latitude": 6.623537,
      "longitude": 3.335782
    },
    {
      "latitude": 6.626412,
      "longitude": 3.354968
    },
    {
      "latitude": 6.611248,
      "longitude": 3.34015
    }
  ],
  "activeFrom": null,
  "activeTo": "2050-01-01T00:00:00.000Z"
}

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