API

Quality management APIs

POST quality/risks/{riskId}/actions

Creates new risk action

HTTP method POST
URI https://api.rambase.net/quality/risks/{riskId}/actions
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 5223, version 2

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.

Format:
1
<RiskAction>
2
     <Task>
3
          <TaskId
TaskId

Required/mandatory field

Unique task identifier

Minimum value: 100000

>
{Integer}</TaskId>
4
     </Task>
5
</RiskAction>
1
{
2
     "riskAction": {
3
          "task": {
4
               "taskId
TaskId

Required/mandatory field

Unique task identifier

Minimum value: 100000

":
"{Integer}"
5
          }
6
     }
7
}

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.

Format:
1
<RiskAction>
2
     <RiskActionId
RiskActionId

Identifier of the risk action

>
{Integer}</RiskActionId>
3
     <AddedAt
AddedAt

Date and time when risk action was added

>
{Datetime}</AddedAt>
4
     <AddedToControl
AddedToControl

Tells if this action was already added to controls

>
5
          <TaskId
TaskId

Unique task identifier

>
{Integer}</TaskId>
6
          <Status
Status

The status of a task

Possible domain values can be found here

>
{Integer}</Status>
7
          <Title
Title

The title/summary of the task

>
{String}</Title>
8
          <Description
Description

The description of the task

>
{String}</Description>
9
          <Priority
Priority

The priority of the task.

Possible domain values can be found here

>
{Integer}</Priority>
10
          <Activity
Activity

Task type: Email, Phone call, Followup

Possible domain values can be found here

>
{Integer}</Activity>
11
          <DeadlineAt
DeadlineAt

Date and time of when this task must be completed.

>
{Datetime}</DeadlineAt>
12
          <AssignedTo
AssignedTo

The userId of the person this task is assigned to (responsible for doing the work)

>
13
               <EmployeeId
EmployeeId

Employee identifier

>
{Integer}</EmployeeId>
14
               <LastName
LastName

Last name of employee

>
{String}</LastName>
15
               <FirstName
FirstName

First name of employee

>
{String}</FirstName>
16
               <EmployeeLink
EmployeeLink

Employee reference

>
{String}</EmployeeLink>
17
          </AssignedTo>
18
          <TaskLink
TaskLink

Task reference

>
{String}</TaskLink>
19
     </AddedToControl>
20
     <RiskActionLink
RiskActionLink

API reference to the item

>
{String}</RiskActionLink>
21
</RiskAction>
1
{
2
     "riskAction": {
3
          "riskActionId
RiskActionId

Identifier of the risk action

":
"{Integer}",
4
          "addedAt
AddedAt

Date and time when risk action was added

":
"{Datetime}",
5
          "addedToControl
AddedToControl

Tells if this action was already added to controls

":
{
6
               "taskId
TaskId

Unique task identifier

":
"{Integer}",
7
               "status
Status

The status of a task

Possible domain values can be found here

":
"{Integer}",
8
               "title
Title

The title/summary of the task

":
"{String}",
9
               "description
Description

The description of the task

":
"{String}",
10
               "priority
Priority

The priority of the task.

Possible domain values can be found here

":
"{Integer}",
11
               "activity
Activity

Task type: Email, Phone call, Followup

Possible domain values can be found here

":
"{Integer}",
12
               "deadlineAt
DeadlineAt

Date and time of when this task must be completed.

":
"{Datetime}",
13
               "assignedTo
AssignedTo

The userId of the person this task is assigned to (responsible for doing the work)

":
{
14
                    "employeeId
EmployeeId

Employee identifier

":
"{Integer}",
15
                    "lastName
LastName

Last name of employee

":
"{String}",
16
                    "firstName
FirstName

First name of employee

":
"{String}",
17
                    "employeeLink
EmployeeLink

Employee reference

":
"{String}"
18
               },
19
               "taskLink
TaskLink

Task reference

":
"{String}"
20
          },
21
          "riskActionLink
RiskActionLink

API reference to the item

":
"{String}"
22
     }
23
}

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 101015 HTTP 404 Permission not found
Error 101420 HTTP 404 Setting definition not found