Edits the content of a risk questionnaire. Note that a questionnaire can only be edited if the value of the AvailableForAnswer field is "true" in the List Content of a Questionnaire call.
URL
{RMUrl}/api/risk/questionnaires/<QuestionnaireId>
REQUEST METHOD
PUT
URL PARAMETER
QuestionnaireId: This parameter is provided in the URL and does not need to be sent through PUT.
FORM CONTENT
The content is a list of the responses provided for the controls in the questionnaire, where each answer contains the following fields:
ControlID (Required): The ID of the control.
Probability (Required): Probability of the control. Valid values: whole numbers between 1 and 5, with 1 - Very Low, 2 - Low, 3 - Medium, 4 - High, and 5 - Very High.
Severity (Required): Severity of the control. Valid values: whole numbers between 1 and 5, with 1 - Very Low, 2 - Low, 3 - Medium, 4 - High, and 5 - Very High.
Comments (Optional): Comment regarding the control. Limit of 5,000 characters.
Evidences (optional): Control evidence. Limit of 5,000 characters.
StatusCode (Required): Answer to the control. This field does not depend on the language being used. Valid values: 0 (Implemented), 1 (Not Implemented), 2 (Not Applicable) e 3 (Not Answered).
REQUEST EXAMPLE
Access the questionnaire with an ID code of "178":
{RMUrl}/api/risk/questionnaires/178
FORM CONTENT EXAMPLE
Answer a questionnaire:
[
{
"ControlID":"MOD_EN.00002161",
"Probability":1,
"Severity":4,
"StatusCode":"1"
},
{
"ControlID":"MOD_EN.00000029",
"Probability":2,
"Severity":3,
"StatusCode":0
}
]
SUCCESS RESPONSE
HTTP status code 204: NoContent