POST
/
api
/
admin
/
histories
/
charts
/
weekly
Get weekly chart data for admin histories
curl --request POST \
  --url https://pria.praxislxp.com/api/admin/histories/charts/weekly \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "institution": "65cfebc32f5e1b37d4e52329",
  "granularity": "month",
  "range": -3,
  "dimension": "count",
  "aggregate": false
}'
{
  "success": true,
  "data": [
    {
      "_id": {
        "granularity": "2023-11-07T05:31:56Z",
        "institution": "<string>"
      },
      "dimension": 123
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token passed in x-access-token header

Body

application/json

Response

Successfully retrieved chart data

The response is of type object.