AnalyticsReportsFilter options

Values the report constructor offers for its filters: performers, clients, companies, sources and whatever the characteristics of this space have actually measured.

POST, а не GET: период — вложенный объект, в query-строке он разворачивается в набор плоских параметров и ломается при первом же изменении формы. Тело запроса описывает его как есть.

POST
/Analytics/reports/filter-options
AuthorizationBearer <token>

JWT Authorization header using Bearer scheme

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://test.api.speaknode.com/api/Analytics/reports/filter-options" \  -H "Content-Type: application/json" \  -d '{}'
{
  "performers": [
    {
      "value": "string",
      "label": "string",
      "group": "Staff",
      "note": "2019-08-24T14:15:22Z",
      "count": 0
    }
  ],
  "clients": [
    "string"
  ],
  "companies": [
    "string"
  ],
  "sources": [
    "string"
  ],
  "metric_values": [
    {
      "key": "string",
      "values": [
        "string"
      ]
    }
  ],
  "uploads": [
    {
      "value": "string",
      "label": "string",
      "group": "Staff",
      "note": "2019-08-24T14:15:22Z",
      "count": 0
    }
  ]
}