Edit Asset Component in the Scope of a Risk Project

Edits an asset component included in the scope of a risk project.

 

URL

{RMUrl}/api/risk/projects/<RiskProjectCode>/controlscope/<AssetComponentCode>

 

REQUEST METHOD

PUT

 

URL PARAMETERS

AssetComponentId: This parameter is provided in the URL and does not need to be sent through PUT.

RiskProjectID: This parameter is provided in the URL and does not need to be sent through PUT.

 

FORM CONTENT

KnowledgeBase (Optional): Version of the knowledge base associated with the asset component to be included in the scope. In this parameter, the user should enter the version to be used if there is more than one version of the same knowledge base.

Survey (Optional): ID or CustomerID of the survey associated with the asset component's knowledge base.

Analyst (Optional): Analyst responsible for the asset component to be included in the scope.

Interviewee (Optional): Person responsible for answering the interview for the asset component. If the asset component does not have a survey, this field will be disregarded.

Reviewer (Optional): Person responsible for reviewing the interview for the asset component. If the asset component does not have a survey, this field will be disregarded.

QuestionnaireStatusCode (Optional): Allows a questionnaire to be opened or closed. Valid values: 1 (Open) and 8 (Close).

 

REQUEST EXAMPLE

{RMUrl}/api/risk/projects/PRJR12184/controlscope/1e22a178-1d43-11e2-a316-22ddd55f8100

 

FORM CONTENT EXAMPLE

Edit the asset component using all options:

{

"KnowledgeBase":{"Version":"2.0"},

"Survey":{"CustomerID":"DEV-01.00000009"},

"Analyst":{"Name":"John Smith"},

"Interviewee":{"Name":"Julia Green"},

"Reviewer":{"Name":"Laura Morris"}

}

 

Open a questionnaire:

{

"QuestionnaireStatusCode":"1"

}

 

Close a questionnaire:

{

"QuestionnaireStatusCode":"8"

}

 

SUCCESS RESPONSE

No information is returned.

 

SUCCESS RESPONSE EXAMPLE

HTTP status code 204: NoContent