Skip to main content
Version: 2.2.2

RIS_CONTROLANALYSIS_INTERFACE

This method allows adding, editing and deleting a control analysis, or adding an attachment to a control analysis, through a REST web service. Only a control analysis that is linked to a risk plan in the draft step can be added or edited; for released risk plans, it is not possible to add or edit the data of a control analysis.

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_controlanalysis_interface
classpathStringYesPath to the class used in WADL
Constant value: ri_import

Example request:

Supported attributes:

Request body parameterTypeRequiredDescription
idcontrolStringYes¹Control ID #
idplanStringYesPlan ID #
cdcontrolrespStringYes¹Responsible ID #
cdcontrolteamStringNoResponsible team ID #
idcontrolanalysisStringYes²Control analysis ID #
gnaca_cdassocStringNoElement ID # superior to the control
fgautomationtypeStringNoAutomation type:
1 - Automatic
2 - Semiautomatic
3 - Manual
fgcontrolcharactStringNoControl characteristic:
1 - Detective
2 - Preventive
3 - Detective + Preventive
4 - Customized in general parameters
5 - Customized in general parameters
6 - Customized in general parameters
fgcontrolfreqStringNoControl frequency:
1 - Based on event
2 - Daily
3 - Weekly
4 - Monthly
5 - Quarterly
6 - Biannual
7 - Yearly
fgimplementStringNoImplementation:
1 - Not implemented
2 - Partly implemented
3 - Completely implemented
dtimplementStringNoImplementation date
dtnextevalStringNoNext evaluation date
qtevalpendencyStringNoExecution deadline
cdmeasunityStringNoMeasurement unit ID #
vlcostStringNoControls cost
cdevalStringNoEvaluation method ID #
dscontrolanalysisStringNoControl analysis description
instanceStringNoConstant value: %WF_IDINSTANCE%
idactStringNoInstance activity ID #
actionStringNoThe action type that will be performed on the screen:
1 – Insert
2 – Edit
3 - Delete
info

Yes¹ - It will not be mandatory during deletion. Action = 3
Yes² - Mandatory only for deletion. Action = 3
If the action field is not completed, the default value will be 1.

{
"idcontrol": "string",
"idplan": "string",
"cdcontrolresp": "string",
"cdcontrolteam": "string",
"idcontrolanalysis": "string",
"gnaca_cdassoc": "string",
"fgautomationtype": 1,
"fgcontrolcharact": 1,
"fgcontrolfreq": 1,
"fgimplement": 1,
"dtimplement": "string",
"dtnexteval": "string",
"qtevalpendency": 1,
"cdmeasunity": "string",
"vlcost": 1.1,
"cdeval": "string",
"dscontrolanalysis": "string",
"instance": "string",
"idact": "string",
"action": 1
}

Example of request for deletion:

{
"idcontrolanalysis": "string",
"idplan": "string",
"action": 3
}

Example response:

200 OK

{
"success": true,
"total": 1,
"results": [
{
"Result": true,
"Code": 1
}
]
}