Get average risk level
POST/stats/app/average-risk-level
Get average risk level.
Request
- application/json
Body
required
timeframe stringrequired
Possible values: [day
, week
, month
, year
, allTime
]
cmsProjectId stringrequired
customerType stringrequired
Possible values: [Individual
, Company
]
Responses
- 200
- default
Successful response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
average numberrequired
counts object[]required
riskScore stringnullable
Possible values: [Low
, Medium
, High
, No risk
]
count numberrequired
{
"average": 0,
"counts": [
{
"riskScore": "Low",
"count": 0
}
]
}
Error response
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
message stringrequired
code stringrequired
issues object[]
message stringrequired
{
"message": "string",
"code": "string",
"issues": [
{
"message": "string"
}
]
}
Loading...