API

Quality management APIs

POST quality/risks/{riskId}/controls

Creates new control out of quality control

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

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
<Control>
2
     <QualityControl>
3
          <QualityControlId
QualityControlId

Required/mandatory field

Identifier of the quality control

Minimum value: 100000

>
{Integer}</QualityControlId>
4
     </QualityControl>
5
</Control>
1
{
2
     "control": {
3
          "qualityControl": {
4
               "qualityControlId
QualityControlId

Required/mandatory field

Identifier of the quality control

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
<Control>
2
     <ControlId
ControlId

Identifier of the control

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

Date and time when control was added

>
4
          <EmployeeId
EmployeeId

Employee identifier

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

Last name of employee

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

First name of employee

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

Employee reference

>
{String}</EmployeeLink>
8
     </AddedAt>
9
     <QualityControl>
10
          <QualityControlId
QualityControlId

Identifier of the quality control

>
{Integer}</QualityControlId>
11
          <Name
Name

Name of the quality control

>
{String}</Name>
12
          <Description
Description

Description of the quality control

>
{String}</Description>
13
          <IsReusable
IsReusable

Tells if quality control might be reused in many risks

>
{Boolean}</IsReusable>
14
          <QualityControlLink
QualityControlLink

API reference to the item

>
{String}</QualityControlLink>
15
          <TaskId
TaskId

Unique task identifier

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

The status of a task

Possible domain values can be found here

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

The title/summary of the task

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

The description of the task

>
{String}</Description>
19
          <Activity
Activity

Task type: Email, Phone call, Followup

Possible domain values can be found here

>
{Integer}</Activity>
20
          <AssignedTo
AssignedTo

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

>
21
               <EmployeeId
EmployeeId

Employee identifier

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

Last name of employee

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

First name of employee

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

Employee reference

>
{String}</EmployeeLink>
25
          </AssignedTo>
26
          <TaskLink
TaskLink

Task reference

>
{String}</TaskLink>
27
     </QualityControl>
28
</Control>
1
{
2
     "control": {
3
          "controlId
ControlId

Identifier of the control

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

Date and time when control was added

":
{
5
               "employeeId
EmployeeId

Employee identifier

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

Last name of employee

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

First name of employee

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

Employee reference

":
"{String}"
9
          },
10
          "qualityControl": {
11
               "qualityControlId
QualityControlId

Identifier of the quality control

":
"{Integer}",
12
               "name
Name

Name of the quality control

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

Description of the quality control

":
"{String}",
14
               "isReusable
IsReusable

Tells if quality control might be reused in many risks

":
"{Boolean}",
15
               "qualityControlLink
QualityControlLink

API reference to the item

":
"{String}",
16
               "taskId
TaskId

Unique task identifier

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

The status of a task

Possible domain values can be found here

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

The title/summary of the task

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

The description of the task

":
"{String}",
20
               "activity
Activity

Task type: Email, Phone call, Followup

Possible domain values can be found here

":
"{Integer}",
21
               "assignedTo
AssignedTo

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

":
{
22
                    "employeeId
EmployeeId

Employee identifier

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

Last name of employee

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

First name of employee

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

Employee reference

":
"{String}"
26
               },
27
               "taskLink
TaskLink

Task reference

":
"{String}"
28
          }
29
     }
30
}

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 107517 HTTP 400 Risk assessment is assessed and cannot be modified