RIS_RISK_INTERFACE
This method allows adding and deleting a risk, or adding an attachment to a risk, through a REST web service. The risk recorded or edited will be made available on the Risk -> File -> Risk screen.
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_risk_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 # |
nmrisk | String | Yes¹ | Risk name |
idtype | String | Yes¹ | Risk type ID # |
idresp | String | No | Responsible user ID |
idteam | String | No | Responsible team ID # |
fgclass | String | No | Risk classification: 1 - Loss 2 - Opportunity |
fgsymbol | String | No | Risk icon ID # |
dsrisk | String | No | Risk description |
instance | String | No | The value of this constant must be:%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",
"nmrisk": "string",
"idtype": "string",
"idresp": "string",
"idteam": "string",
"fgclass": 1,
"fgsymbol": 1,
"dsrisk": "text",
"instance": "string",
"idact": "string",
"action": 1
}
Example of request for deletion:
{
"idrisk": "string",
"action": 3
}
Example response:
200 OK
{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}