RiskDemand
Manage risk demands, which represent the association between risks and demands for compliance or mitigation.
You can create, update, delete, and search for risk demands with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/risk-demand/index
Returns a paginated and filterable list of risk demands.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching risk demands
object
object
The unique identifier of the risk demand.
The unique identifier of the associated risk.
The unique identifier of the associated demand.
The unique identifier of the associated office.
The unique identifier of the associated project.
Additional data related to the risk demand in JSON format.
object
The probability of the risk occurring.
The potential damage caused by the risk.
The code associated with the risk, if available.
The name of the associated risk.
The unique identifier of the associated action.
The code associated with the action, if available.
The name of the associated action.
The type of action associated with the risk demand.
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "risk_id": "risk-1", "demand_id": "dem-1" }, "per-page": 10, "page": 1, "sort": "risk_id"}
Responses
Section titled “ Responses ”List of risk demands
object
The unique identifier of the risk demand.
The unique identifier of the associated risk.
The unique identifier of the associated demand.
The unique identifier of the associated office.
The unique identifier of the associated project.
Additional data related to the risk demand in JSON format.
object
The probability of the risk occurring.
The potential damage caused by the risk.
The code associated with the risk, if available.
The name of the associated risk.
The unique identifier of the associated action.
The code associated with the action, if available.
The name of the associated action.
The type of action associated with the risk demand.
Example
{ "risk_demand_id": "rd-1", "risk_id": "risk-1", "demand_id": "dem-1", "probability": 3, "damage": 4, "office_id": "off-1", "project_id": "proj-1"}
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” POST /v2/risk-demand/create
Create a new risk demand by providing the required details.
Request Body required
Section titled “Request Body required ”Risk demand object to be created
object
The unique identifier of the risk demand.
The unique identifier of the associated risk.
The unique identifier of the associated demand.
Additional data related to the risk demand in JSON format.
object
The probability of the risk occurring, if available.
The potential damage caused by the risk, if available.
Example
{ "risk_id": "risk-2", "demand_id": "dem-2", "probability": 2, "damage": 5}
Responses
Section titled “ Responses ”Risk demand created successfully
object
The unique identifier of the risk demand.
The unique identifier of the associated risk.
The unique identifier of the associated demand.
Additional data related to the risk demand in JSON format.
object
The probability of the risk occurring, if available.
The potential damage caused by the risk, if available.
Example
{ "risk_demand_id": "rd-2", "risk_id": "risk-2", "demand_id": "dem-2", "probability": 2, "damage": 5}
GET /v2/risk-demand/view/{id}
Retrieve a risk demand by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the risk demand to retrieve
Responses
Section titled “ Responses ”Risk demand found
object
The unique identifier of the risk demand.
The unique identifier of the associated risk.
The unique identifier of the associated demand.
The unique identifier of the associated office.
The unique identifier of the associated project.
Additional data related to the risk demand in JSON format.
object
The probability of the risk occurring.
The potential damage caused by the risk.
The code associated with the risk, if available.
The name of the associated risk.
The unique identifier of the associated action.
The code associated with the action, if available.
The name of the associated action.
The type of action associated with the risk demand.
Example
{ "risk_demand_id": "rd-1", "risk_id": "risk-1", "demand_id": "dem-1", "probability": 3, "damage": 4, "office_id": "off-1", "project_id": "proj-1"}
Risk demand not found
delete
Section titled “delete” DELETE /v2/risk-demand/delete/{id}
Delete a risk demand by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Section titled “Path Parameters ”ID of the risk demand to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Risk demand deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned
update
Section titled “update” PUT /v2/risk-demand/update/{id}
Update an existing risk demand by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the risk demand to update
Request Body required
Section titled “Request Body required ”Risk demand object with updated data
object
The unique identifier of the risk demand.
The unique identifier of the associated risk.
The unique identifier of the associated demand.
Additional data related to the risk demand in JSON format.
object
The probability of the risk occurring, if available.
The potential damage caused by the risk, if available.
Example
{ "probability": 5, "damage": 2}
Responses
Section titled “ Responses ”Risk demand updated successfully
object
The unique identifier of the risk demand.
The unique identifier of the associated risk.
The unique identifier of the associated demand.
Additional data related to the risk demand in JSON format.
object
The probability of the risk occurring, if available.
The potential damage caused by the risk, if available.
Example
{ "risk_demand_id": "rd-1", "probability": 5, "damage": 2}
Risk demand not found