Skip to main content

Get Risk Detail

Support avatar
Written by Support
Updated over a year ago

GET [ risk/{risk_id} ]

Production Endpoint: https://app.complyflow.com.au/app/public/index.php/api/risk/{risk_id}
Test Endpoint: https://test.complyflow.com.au/app/public/index.php/api/risk/{risk_id}

Overview

This endpoint returns the details of a specific risk, that is visible to staff.

Authentication instructions

Refer to the Authentication method for Authentication Methods (for Login and Logout).

Permissions Required

The user should possess the permissions below:

  • API User

  • User is Staff

  • One of the following:

    • User have View Risk Permission, or

    • User is a Risk Owner, or

    • User is assigned to Site Risk Action

Please also refer to the Permissions Overview guide.

Query parameters

FIELD

TYPE

DESCRIPTION

EXAMPLE

REQUIRED

DEFAULT

PATTERN

-

-

-

-

-

-

-

Request Example

curl --location 'http://test.complyflow.com.au/app/public/index.php/api/risk/108' \
--header 'Authorization: [...]' \
--header 'Cookie: [...]'

Response Example

The API Request returns detail of single risk that staff can see.
​

{
"token": "",
"data": {
"risk_id": 108,
"risk_name": "coba",
"risk_description": "INI Description buat Risk cobaaaa",
"risk_area": "aaaaa",
"risk_category": "aaaaav2",
"sites": [
{
"site_risk_id": 210,
"site_id": 45,
"risk_owner": "wr er",
"risk_status": "Pending",
"last_modified": "2024-02-27 15:57:19",
"initial_risk": {
"label": "High",
"likelihood": "(Likely) Probably will happen, Once in 1 year",
"consequence": "(Critical) Permanent loss of Ecosystem, or Regulator Prosecution",
"order": "L4:C5",
"last_updated": "2024-02-19 12:26:00"
},
"residual_risk": {
"label": "High",
"likelihood": "(Likely) Probably will happen, Once in 1 year",
"consequence": "(Critical) Permanent loss of Ecosystem, or Regulator Prosecution",
"order": "L4:C5",
"last_updated": "2024-02-19 12:26:00"
},
"controls": [
{
"control": "hyu",
"hierarchy_of_control": 2,
"effective_from": "2024-01-29",
"last_updated_by": "wr er"
}
],
"actions": [
{
"action_id": 853,
"action_name": "Risk Review Due for aaaaav2 - coba at PROJECTTEST2",
"responsible": "wr er",
"details": "wr er has assigned this risk for you to assess (Review ID 46). Please review all controls and update the residual risk. If you have any comments please add them to the Risk Review.",
"due_date": "2024-03-22",
"last_updated": "2024-03-15 15:29:18",
"action_status": "Pending"
}
],
"risk_reviews": [
{
"risk_review_id": 1,
"risk_review_title": "AAAAA"
}
]
}
]
}
}
Did this answer your question?