Coruson API

<back to all web services

CreateReportRiskAssessment

Coruson Reports

Requires Authentication
The following routes are available for this service:
POST/api/reports/riskassessmentsAdd a Risk Assessment to a Coruson Report
CreateReportRiskAssessment Parameters:
NameParameterData TypeRequiredDescription
ReportIdqueryGuidYesThe id of the report to add the risk assessment to.
MatrixRevisionIdqueryGuidYesThe id of the active risk matrix revision to assess against.
XDimensionAssessmentValuequeryIntegerYesThe X-axis (e.g. Likelihood) assessment value, as the integer position within the matrix range.
YDimensionAssessmentValuesqueryDictionary<Guid, Integer>YesAssessment value per Y-axis perspective, keyed by perspective id. A value is required for every Y perspective of the matrix revision.
CommentqueryStringNoOptional free-text comment for the risk assessment.
RiskAssessmentIdqueryGuidNoOptional id for the new risk assessment; generated by the server if omitted.
RequestBase Parameters:
NameParameterData TypeRequiredDescription
VersionformintNo
CreateReportRiskAssessmentResponse Parameters:
NameParameterData TypeRequiredDescription
RiskAssessmentIdformGuidNo
ReportIdformGuidNo
MatrixRevisionIdformGuidNo
RiskAssessmentValueformintNo
RiskRatingDisplayValueformstringNo
SuggestedActionformstringNo
CommentformstringNo
PerformedByformstringNo
PerformedByIdformGuidNo
PerformedDateformstringNo
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
StatusDescriptionformstringNo
ResponseStatusformResponseStatusNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

                    POST /json/reply/CreateReportRiskAssessment HTTP/1.1 
Host: platform.gaelenlighten.com 
Content-Type: application/json
Content-Length: length

{"Version":0,"XDimensionAssessmentValue":0,"YDimensionAssessmentValues":{"00000000-0000-0000-0000-000000000000":0},"Comment":"String","RiskAssessmentId":"00000000-0000-0000-0000-000000000000"}
                    
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"StatusDescription":"String","ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"RiskAssessmentValue":0,"RiskRating":"String","SuggestedAction":"String","Comment":"String","PerformedBy":"String","PerformedDate":"String"}