RiskDemand
Questi contenuti non sono ancora disponibili nella tua lingua.
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
Sezione intitolata “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
Sezione intitolata “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
Sezione intitolata “ 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
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
POST /v2/risk-demand/create
Create a new risk demand by providing the required details.
Request Body required
Sezione intitolata “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
Sezione intitolata “ 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
Sezione intitolata “Path Parameters ”ID of the risk demand to retrieve
Responses
Sezione intitolata “ 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 /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
Sezione intitolata “Path Parameters ”ID of the risk demand to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ 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
PUT /v2/risk-demand/update/{id}
Update an existing risk demand by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the risk demand to update
Request Body required
Sezione intitolata “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
Sezione intitolata “ 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