RIS_RISKANALYSIS_INTERFACE
This method allows adding and deleting a risk analysis, or adding an attachment to a risk analysis, through a REST web service. It is only allowed to add or edit a risk analysis that is linked to a plan in draft, for the approved plans it is not possible to add or edit the data of the risk analysis.
POST /apigateway/se/generic/gn_webservice/gn_webservice_execute.php
Query parameters:
Query parameters | Type | Required | Description |
---|---|---|---|
cdprod | Numeric | Yes | Product codeConstant value: 215 |
classname | String | Yes | Class name used in WADLConstant value: ris_riskanalysis_interface |
classpath | String | Yes | Path to the class used in WADLConstant value: ri_import |
Example request:
Supported attributes:
Request body parameter | Type | Required | Description |
---|---|---|---|
idrisk | String | Yes¹ | Risk ID # |
idplan | String | Yes | Plan ID # |
cdriskresp | String | Yes¹ | Responsible ID # |
cdriskteam | String | No | Responsible team ID # |
idriskanalysis | String | Yes² | Risk analysis ID # |
gnara_cdassoc | String | No | Element ID # superior to the risk |
dtnexteval | String | No | Next evaluation date |
qtpendecy | String | No | Execution deadline |
cdtreatment | String | No | Treatment ID # |
cdmeasunity | String | No | Measurement unit ID # |
vltotal | String | No | Value of other losses |
vlapetite | String | No | Risk appetite value |
vltolerance | String | No | Risk tolerance value |
dsriskanalysis | String | No | Risk analysis description |
instance | String | No | Constant value: %WF_IDINSTANCE% |
idact | String | No | Instance activity ID # |
action | String | No | The action type that will be performed on the screen: 1 - Insert 3 - Delete |
info
Yes¹ - They are not mandatory during deletion. Action = 3
{
"idrisk": "string",
"idplan": "string",
"cdriskresp": "string",
"cdriskteam": "string",
"gnara_cdassoc": "string",
"idriskanalysis": "string",
"dtnexteval": "string",
"qtpendecy": 1,
"cdtreatment": "string",
"cdmeasunity": "string",
"vlapetite": 1.1,
"vltotal": 1.1,
"vltolerance": 1.1,
"dsriskanalysis": "string",
"instance": "string",
"idact": "string",
"action": 1
}
Example of request for deletion:
{
"idriskanalysis": "string",
"idplan": "string",
"action": 3
}
Example response:
200 OK
{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}