Skip to main content
Version: 2.2.2

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 parametersTypeRequiredDescription
cdprodNumericYesProduct code
Constant value: 215
classnameStringYesClass name used in WADL
Constant value: ris_risk_interface
classpathStringYesPath to the class used in WADL
Constant value: ri_import

Example request:

Supported attributes:

Request body parameterTypeRequiredDescription
idriskStringYesRisk ID #
nmriskStringYes¹Risk name
idtypeStringYes¹Risk type ID #
idrespStringNoResponsible user ID
idteamStringNoResponsible team ID #
fgclassStringNoRisk classification:
1 - Loss
2 - Opportunity
fgsymbolStringNoRisk icon ID #
dsriskStringNoRisk description
instanceStringNoThe value of this constant must be:
%WF_IDINSTANCE%
idactStringNoInstance activity ID #
actionStringNoThe 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
}
]
}