Get risk score data in bulk​
This endpoint can retrieve risk score data in bulk from Lifecycle
Query Parameters
- query object
Allows for pagination and sorting using the deepObject notation.
resource?query[limit]=50&query[offset]=0&query[order]=label
Parameter Description Default limit Limits the number of results returned 100 offset Returns the results starting at the value provided 0 order Allows you to determine the order in which the data is returned (not available on profile attributes) id Example: query[limit]=100&query[offset]=50&query[order]=created_at - object_id uuid
ID of an object for filtering. Used along with object_type
Example: db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e - object_type string
Possible values: [
Profile
,WorkflowSession
]Type of object that object_id represents
Example: Profile - overall_risk_level_id uuid
Overall risk level to filter by
- impact_risk_level_id uuid
Impact risk level to filter by
Example: db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e - probability_risk_level_id uuid
Probability risk level to filter by
Example: db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e - metadata boolean
Returns batching metadata in the response
Example: true
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
risk_scores object[]
id uuidid
uid stringPossible values:
>= 32 characters
and<= 32 characters
the uid
object_id uuidthe object id
object_type stringPossible values: [
Profile
,WorkflowSession
]the object type
overall_score decimalOverall score
overall_risk_level_id uuidthe overall risk level id
impact_score decimalthe impact score
impact_risk_level_id uuidthe impact risk level id
probability_score decimalthe probability_score
probability_risk_level_id uuidThe probability risk level id
_metadata object
limit int32The limit
offset int32The offset
total int32The total
next stringThe link to the next page of data
previous stringThe link to the previous page of data
{
"risk_scores": [
{
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"object_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"object_type": "Profile",
"overall_score": 0.2,
"overall_risk_level_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"impact_score": 0.4,
"impact_risk_level_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"probability_score": 0.5,
"probability_risk_level_id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e"
}
],
"_metadata": {
"limit": 50,
"offset": 100,
"total": 10000,
"next": "/endpoint?limit=10&offset=60",
"previous": "/endpoint?limit=10&offset=40"
}
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- error
- error
- errors
{
"error": "Invalid JSON syntax. Please check your syntax and try again."
}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
- error
A message describing the error
{
"error": "Sorry something went wrong"
}