Quality management APIs
Creates a new potential consequence
HTTP method | POST |
URI | https://api.rambase.net/quality/risks/{riskId}/potential-consequences |
Supported formats | Xml, Html, Json (ex. $format=json) |
- URI parameter {riskId} |
Identifier of the risk
Integer, minimum 100000 |
Successful HTTP status code | 201 |
API resource identifier | 5212, version 9 |
The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.
ConsequenceType
Consequence type is a text that shortly describes the direct consequence of an incidient. I.E "broken arm".
Applicable domain values can be found here
This field is optional.
>{Integer}</ConsequenceType>Comment
Comment to the potential consequence
This field is optional.
>{String}</Comment>SeverityId
Required/mandatory field
Identifier for a consequence severity
Minimum value: 1
>{Integer}</SeverityId>LikelihoodId
Required/mandatory field
Likelihood identifier
Minimum value: 1
>{Integer}</LikelihoodId>QualityConsequenceAreaId
Required/mandatory field
Quality consequence identifier
Minimum value: 100000
>{Integer}</QualityConsequenceAreaId>ConsequenceType
Consequence type is a text that shortly describes the direct consequence of an incidient. I.E "broken arm".
Applicable domain values can be found here
This field is optional.
": "{Integer}",Comment
Comment to the potential consequence
This field is optional.
": "{String}",SeverityId
Required/mandatory field
Identifier for a consequence severity
Minimum value: 1
": "{Integer}"LikelihoodId
Required/mandatory field
Likelihood identifier
Minimum value: 1
": "{Integer}"QualityConsequenceAreaId
Required/mandatory field
Quality consequence identifier
Minimum value: 100000
": "{Integer}"The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.
$access_token String, optional | After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time. |
$db String, optional | Set the database/company for the request |
$useMinimumVersion Integer, optional | Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information. |
$showDomainDescriptions Boolean, optional | Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false. |
$lang String, optional | Specifies the language used in the response, following the 3-letter ISO-639-1 [lll] |
Read more about filters and sorting on how to use filter parameters and named filters.
Read more about filters and sorting on how to use sortable parameters
Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields.
Please note that some fields may be removed from the response, based on user roles/duties/permissions.
PotentialConsequenceId
Potential consequence identifier
>{Integer}</PotentialConsequenceId>Score
Score of the potential consequence. Calculated from severity rating multiplied with likelihood level
>{Integer}</Score>CreatedAt
Date and time of creation
>{Datetime}</CreatedAt>ConsequenceType
Consequence type is a text that shortly describes the direct consequence of an incidient. I.E "broken arm".
Possible domain values can be found here
>{Integer}</ConsequenceType>Comment
Comment to the potential consequence
>ActionsCount
Number of actions related to this potential consequence
>{Integer}</ActionsCount>ControlsCount
Number of controls linked to this potential consequence
SeverityId
Identifier for a consequence severity
>{Integer}</SeverityId>Rating
Severity rating of a potential consequence
>{Integer}</Rating>Level
Level of the severity. These values are typically from 1 to the dimension of a risk matrix.
>{Integer}</Level>SeverityLink
Quality severity document id
>{String}</SeverityLink>LikelihoodId
Likelihood identifier
>{Integer}</LikelihoodId>Level
Likelihood level of a potential consequence
>{Integer}</Level>LikelihoodLink
Fulldocid of likelihood
>{String}</LikelihoodLink>QualityConsequenceAreaId
Quality consequence identifier
>{Integer}</QualityConsequenceAreaId>Name
Name of the quality consequence area
>{String}</Name>LowerThreshold
Threshold for risk scores. Values less than or equal to this threshold will have a low risk. Medium or higher risks have risk scores greater than this threshold value
>{Integer}</LowerThreshold>UpperThreshold
Threshold for risk scores. Values less than this threshold will have a low or medium risk. High risks will have risk scores greater than or equal to this threshold value
>{Integer}</UpperThreshold>QualityConsequenceAreaLink
Quality consequence area reference
>{String}</QualityConsequenceAreaLink>ScoreLogEntryId
Score log entry identifier
>{Integer}</ScoreLogEntryId>Score
Risk score in score log
>{Integer}</Score>ScoreLogEntryLink
API reference to the item
>{Docref-customlink}</ScoreLogEntryLink>PotentialConsequenceId
Potential consequence identifier
": "{Integer}",Score
Score of the potential consequence. Calculated from severity rating multiplied with likelihood level
": "{Integer}",CreatedAt
Date and time of creation
": "{Datetime}",ConsequenceType
Consequence type is a text that shortly describes the direct consequence of an incidient. I.E "broken arm".
Possible domain values can be found here
": "{Integer}",Comment
Comment to the potential consequence
": {ActionsCount
Number of actions related to this potential consequence
": "{Integer}",ControlsCount
Number of controls linked to this potential consequence
SeverityId
Identifier for a consequence severity
": "{Integer}",Rating
Severity rating of a potential consequence
": "{Integer}",Level
Level of the severity. These values are typically from 1 to the dimension of a risk matrix.
": "{Integer}",SeverityLink
Quality severity document id
": "{String}"LikelihoodId
Likelihood identifier
": "{Integer}",Level
Likelihood level of a potential consequence
": "{Integer}",LikelihoodLink
Fulldocid of likelihood
": "{String}"QualityConsequenceAreaId
Quality consequence identifier
": "{Integer}",Name
Name of the quality consequence area
": "{String}",LowerThreshold
Threshold for risk scores. Values less than or equal to this threshold will have a low risk. Medium or higher risks have risk scores greater than this threshold value
": "{Integer}",UpperThreshold
Threshold for risk scores. Values less than this threshold will have a low or medium risk. High risks will have risk scores greater than or equal to this threshold value
": "{Integer}",QualityConsequenceAreaLink
Quality consequence area reference
": "{String}",ScoreLogEntryId
Score log entry identifier
": "{Integer}",Score
Risk score in score log
": "{Integer}",ScoreLogEntryLink
API reference to the item
": "{Docref-customlink}"
List of available operations/actions for this resource.
See the operations documentation for more information about API operations.
Possible error codes the response might return:
Error 100027 HTTP 400 | Missing mandatory parameter {0} |
Error 101420 HTTP 404 | Setting definition not found |
Error 107222 HTTP 400 | Updates are not allowed when risk assessment is in status 4 or above |
Error 107293 HTTP 400 | Positive score cannot be lower than zero |
Error 107294 HTTP 400 | Negative score cannot be bigger than zero |