Skip to main content
POST
Get weekly chart data for admin histories

Authorizations

x-access-token
string
header
required

JWT token passed in x-access-token header

Body

application/json
institution
string
required

Institution ID

Example:

"65cfebc32f5e1b37d4e52329"

granularity
enum<string>
required

Time granularity for the chart data

Available options:
day,
week,
month,
hour
Example:

"month"

range
integer
required

Time range (negative values for past periods)

Example:

-3

dimension
enum<string>
required

Data dimension to measure

Available options:
count,
sum,
average
Example:

"count"

aggregate
boolean
required

Whether to aggregate the data

Example:

false

Response

Successfully retrieved chart data

success
boolean

Indicates if the request was successful

data
object[]

Array of chart data points