Skip to main content
POST
/
indicators
/
{indicatorId}
/
data
Get indicator data with widget settings
curl --request POST \
  --url https://app.azalt.co/api/v1/indicators/{indicatorId}/data \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "widgetSettings": {
    "indicatorDatasetMappings": {},
    "period": "MONTHLY",
    "displayMode": "sites",
    "decimalPlaces": 123,
    "aggregator": "sum",
    "showNumbers": true,
    "showIndicatorName": true,
    "angle": 123,
    "chartSettings": "default",
    "siteGroups": [
      {
        "id": "<string>",
        "name": "<string>",
        "siteIds": [
          "<string>"
        ]
      }
    ]
  },
  "siteFilter": {
    "siteIds": [
      "<string>"
    ]
  },
  "yearFilter": {
    "startYear": 123,
    "endYear": 123
  }
}
'
{
  "code": "BAD_REQUEST",
  "message": "Invalid input data",
  "issues": []
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

indicatorId
string
required

Body

application/json
widgetSettings
object
siteFilter
object
yearFilter
object

Response

Successful response