Quality management APIs
Add new risk
HTTP method | POST |
URI | https://api.rambase.net/quality/risks |
Supported formats | Xml, Html, Json (ex. $format=json) |
Custom fields | Custom fields supported |
Successful HTTP status code | 201 |
API resource identifier | 5206, version 4 |
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.
Title
Required/mandatory field
Title of the risk
>{String}</Title>Description
Description of the risk
This field is optional.
>{String}</Description>RiskAssessment
This field is optional.
>RiskAssessmentId
Risk assessment identifier
Minimum value: 100000
This field is optional.
>{Integer}</RiskAssessmentId>EmployeeId
Required/mandatory field
Employee identifier
Minimum value: 100
>{Integer}</EmployeeId>Context
This field is optional.
>Source
This field is optional.
>ObjectId
Identifier of the object
This field is optional.
>{Integer}</ObjectId>ObjectType
Type of object
This field is optional.
>{String}</ObjectType>ItemId
Item-number of the object
This field is optional.
>{Integer}</ItemId>Title
Required/mandatory field
Title of the risk
": "{String}",Description
Description of the risk
This field is optional.
": "{String}",RiskAssessment
This field is optional.
": {RiskAssessmentId
Risk assessment identifier
Minimum value: 100000
This field is optional.
": "{Integer}"EmployeeId
Required/mandatory field
Employee identifier
Minimum value: 100
": "{Integer}"Context
This field is optional.
": {Source
This field is optional.
": {ObjectId
Identifier of the object
This field is optional.
": "{Integer}",ObjectType
Type of object
This field is optional.
": "{String}",ItemId
Item-number of the object
This field is optional.
": "{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] |
$showCustomFields Boolean, optional | Set to "true" to include custom fields. Default value is false. |
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.
RiskId
Identifier of the risk
>{Integer}</RiskId>CreatedAt
Date and time when risk was created
>{Datetime}</CreatedAt>UpdatedAt
Date and time of update
>{Datetime}</UpdatedAt>Title
Title of the risk
>{String}</Title>Description
Description of the risk
>PotentialConsequenceId
Potential consequence identifier
>{Integer}</PotentialConsequenceId>Score
Score of the potential consequence. Calculated from severity rating multiplied with likelihood level
>{Integer}</Score>QualityConsequenceAreaId
Quality consequence identifier
>{Integer}</QualityConsequenceAreaId>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>PotentialConsequenceLink
API reference to the item
>{String}</PotentialConsequenceLink>PotentialConsequenceId
Potential consequence identifier
>{Integer}</PotentialConsequenceId>Score
Score of the potential consequence. Calculated from severity rating multiplied with likelihood level
>{Integer}</Score>QualityConsequenceAreaId
Quality consequence identifier
>{Integer}</QualityConsequenceAreaId>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>PotentialConsequenceLink
API reference to the item
>{String}</PotentialConsequenceLink>RiskAssessmentId
Risk assessment identifier
>{Integer}</RiskAssessmentId>Name
Name of the risk assessment
>{String}</Name>IsTemplate
This field indicates if risk assessment is marked as a template assessment
>{Boolean}</IsTemplate>RiskAssessmentLink
API reference to the object
>{String}</RiskAssessmentLink>EmployeeId
Employee identifier
>{Integer}</EmployeeId>LastName
Last name of employee
>{String}</LastName>FirstName
First name of employee
>{String}</FirstName>EmployeeLink
Employee reference
>{String}</EmployeeLink>ObjectId
Identifier of the object
>{Integer}</ObjectId>ObjectType
Type of object
>{String}</ObjectType>ObjectLink
API reference to the object
>{String}</ObjectLink>ItemId
Item-number of the object
>{Integer}</ItemId>ItemLink
API reference to the item
>{String}</ItemLink>PotentialConsequencesCount
Shows count of all consequence types belonging to this risk
>{Integer}</PotentialConsequencesCount>ControlsCount
Shows count of all controls belonging to this risk
>{Integer}</ControlsCount>RiskActionsCount
Shows all actions count belonging to this risk.
>{Integer}</RiskActionsCount>DoneRiskActionsCount
Shows count of done actions belonging to this risk
>{Integer}</DoneRiskActionsCount>NotesCount
Shows count of the notes added to the risk
>{Integer}</NotesCount>RiskId
Identifier of the risk
": "{Integer}",CreatedAt
Date and time when risk was created
": "{Datetime}",UpdatedAt
Date and time of update
": "{Datetime}",Status
Status of the risk
Possible domain values can be found here
": "{Integer}",Title
Title of the risk
": "{String}",Description
Description of the risk
": {PotentialConsequenceId
Potential consequence identifier
": "{Integer}",Score
Score of the potential consequence. Calculated from severity rating multiplied with likelihood level
": "{Integer}",QualityConsequenceAreaId
Quality consequence identifier
": "{Integer}",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}"PotentialConsequenceLink
API reference to the item
": "{String}",PotentialConsequenceId
Potential consequence identifier
": "{Integer}",Score
Score of the potential consequence. Calculated from severity rating multiplied with likelihood level
": "{Integer}",QualityConsequenceAreaId
Quality consequence identifier
": "{Integer}",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}"PotentialConsequenceLink
API reference to the item
": "{String}",RiskAssessmentId
Risk assessment identifier
": "{Integer}",Status
Status of risk assessment
Possible domain values can be found here
": "{Integer}",Name
Name of the risk assessment
": "{String}",IsTemplate
This field indicates if risk assessment is marked as a template assessment
": "{Boolean}",RiskAssessmentLink
API reference to the object
": "{String}",EmployeeId
Employee identifier
": "{Integer}",LastName
Last name of employee
": "{String}",FirstName
First name of employee
": "{String}",EmployeeLink
Employee reference
": "{String}",ObjectId
Identifier of the object
": "{Integer}",ObjectType
Type of object
": "{String}",ObjectLink
API reference to the object
": "{String}",ItemId
Item-number of the object
": "{Integer}",ItemLink
API reference to the item
": "{String}"PotentialConsequencesCount
Shows count of all consequence types belonging to this risk
": "{Integer}",ControlsCount
Shows count of all controls belonging to this risk
": "{Integer}",RiskActionsCount
Shows all actions count belonging to this risk.
": "{Integer}",DoneRiskActionsCount
Shows count of done actions belonging to this risk
": "{Integer}",NotesCount
Shows count of the notes added to the risk
": "{Integer}"
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 |