API

Collaboration APIs

POST collaboration/tasks

Creates a new task

HTTP method POST
URI https://api.rambase.net/collaboration/tasks
Supported formats Xml, Html, Json (ex. $format=json)
Custom fields Custom fields supported
Successful HTTP status code 201
API resource identifier 2483, version 18

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
<Task>
2
     <Type
Type

The type of the task

Applicable domain values can be found here

This field is optional.

>
{String}</Type>
3
     <Title
Title

Required/mandatory field

The title/summary of the task

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

The description of the task

This field is optional.

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

The priority of the task.

Applicable domain values can be found here

Default value: 3

This field is optional.

>
{Integer}</Priority>
6
     <IsPrivate
IsPrivate

True if the task is only visible for the creator of the task

Default value: False

This field is optional.

>
{Boolean}</IsPrivate>
7
     <DeadlineAt
DeadlineAt

Date and time of when this task must be completed.

This field is optional.

>
{Datetime}</DeadlineAt>
8
     <Activity
Activity

Task type: Email, Phone call, Followup

Applicable domain values can be found here

This field is optional.

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

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

This field is optional.

>
10
          <EmployeeId
EmployeeId

Employee identifier

Minimum value: 100

This field is optional.

>
{Integer}</EmployeeId>
11
     </AssignedTo>
12
     <Process
Process

Information about the process this task belongs to.

This field is optional.

>
13
          <ProcessId
ProcessId

Unique identifier for Process

Minimum value: 100000

This field is optional.

>
{Integer}</ProcessId>
14
     </Process>
15
     <Folder
Folder

This field is optional.

>
16
          <FolderId
FolderId

File folder id for a spesific file container or forlder.

Minimum value: 100000

This field is optional.

>
{Integer}</FolderId>
17
     </Folder>
18
     <ResponsibleRole
ResponsibleRole

Role (department etc.) responsible for a task

This field is optional.

>
19
          <RoleId
RoleId

Role identifier

Minimum value: 100000

This field is optional.

>
{Integer}</RoleId>
20
     </ResponsibleRole>
21
</Task>
1
{
2
     "task": {
3
          "type
Type

The type of the task

Applicable domain values can be found here

This field is optional.

":
"{String}",
4
          "title
Title

Required/mandatory field

The title/summary of the task

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

The description of the task

This field is optional.

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

The priority of the task.

Applicable domain values can be found here

Default value: 3

This field is optional.

":
"{Integer}",
7
          "isPrivate
IsPrivate

True if the task is only visible for the creator of the task

Default value: False

This field is optional.

":
"{Boolean}",
8
          "deadlineAt
DeadlineAt

Date and time of when this task must be completed.

This field is optional.

":
"{Datetime}",
9
          "activity
Activity

Task type: Email, Phone call, Followup

Applicable domain values can be found here

This field is optional.

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

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

This field is optional.

":
{
11
               "employeeId
EmployeeId

Employee identifier

Minimum value: 100

This field is optional.

":
"{Integer}"
12
          },
13
          "process
Process

Information about the process this task belongs to.

This field is optional.

":
{
14
               "processId
ProcessId

Unique identifier for Process

Minimum value: 100000

This field is optional.

":
"{Integer}"
15
          },
16
          "folder
Folder

This field is optional.

":
{
17
               "folderId
FolderId

File folder id for a spesific file container or forlder.

Minimum value: 100000

This field is optional.

":
"{Integer}"
18
          },
19
          "responsibleRole
ResponsibleRole

Role (department etc.) responsible for a task

This field is optional.

":
{
20
               "roleId
RoleId

Role identifier

Minimum value: 100000

This field is optional.

":
"{Integer}"
21
          }
22
     }
23
}

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.

Format:
1
<Task>
2
     <TaskId
TaskId

Unique task identifier

>
{Integer}</TaskId>
3
     <Type
Type

The type of the task

Possible domain values can be found here

>
{String}</Type>
4
     <Status
Status

The status of a task

Possible domain values can be found here

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

The title/summary of the task

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

The description of the task

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

The priority of the task.

Possible domain values can be found here

>
{Integer}</Priority>
8
     <IsPrivate
IsPrivate

True if the task is only visible for the creator of the task

>
{Boolean}</IsPrivate>
9
     <DeadlineAt
DeadlineAt

Date and time of when this task must be completed.

>
{Datetime}</DeadlineAt>
10
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
11
     <StartedAt
StartedAt

The date and time when the task was started (status="In progress")

>
{Datetime}</StartedAt>
12
     <CompletedAt
CompletedAt

The full date and time when a task was completed

>
{Datetime}</CompletedAt>
13
     <Activity
Activity

Task type: Email, Phone call, Followup

Possible domain values can be found here

>
{Integer}</Activity>
14
     <TotalRegisteredHours
TotalRegisteredHours

Aggregate hours registered for task

>
{Decimal}</TotalRegisteredHours>
15
     <CompletedBy
CompletedBy

The user who completed the task

>
16
          <UserId
UserId

User identifier

>
{Integer}</UserId>
17
          <Name
Name

Name of the user

>
{String}</Name>
18
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
19
          <UserLink
UserLink

User reference

>
{String}</UserLink>
20
     </CompletedBy>
21
     <ReviewedBy
ReviewedBy

Information about the user who approved or rejected the task.

>
22
          <UserId
UserId

User identifier

>
{Integer}</UserId>
23
          <Name
Name

Name of the user

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

First name of the user

>
{String}</FirstName>
25
          <UserLink
UserLink

User reference

>
{String}</UserLink>
26
     </ReviewedBy>
27
     <CreatedBy
CreatedBy

Information about the user who created the task.

>
28
          <UserId
UserId

User identifier

>
{Integer}</UserId>
29
          <Name
Name

Name of the user

>
{String}</Name>
30
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
31
          <UserLink
UserLink

User reference

>
{String}</UserLink>
32
          <CanView
CanView

Grants permission to view task

>
{Boolean}</CanView>
33
          <CanEdit
CanEdit

Grants permission to edit task

>
{Boolean}</CanEdit>
34
          <CanDelete
CanDelete

Grants permission to delete task

>
{Boolean}</CanDelete>
35
          <CanAssign
CanAssign

Grants permission to assign task

>
{Boolean}</CanAssign>
36
          <CanChangeStatus
CanChangeStatus

Grants permission to assign task

>
{Boolean}</CanChangeStatus>
37
     </CreatedBy>
38
     <CreatedInCompany
CreatedInCompany

The compnay the task was created in

>
39
          <CompanyId
CompanyId

Company identifier

>
{Integer}</CompanyId>
40
          <Database
Database

Abbreviation/code to identify the company

>
{String}</Database>
41
          <CompanyLink
CompanyLink

Company reference

>
{String}</CompanyLink>
42
     </CreatedInCompany>
43
     <AssignedTo
AssignedTo

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

>
44
          <EmployeeId
EmployeeId

Employee identifier

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

Last name of employee

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

First name of employee

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

Employee reference

>
{String}</EmployeeLink>
48
          <ProcessId
ProcessId

Unique identifier for Process

>
{Integer}</ProcessId>
49
          <Name
Name

The name of this process

>
{String}</Name>
50
          <DeadlineAt
DeadlineAt

Date and time for all the Tasks under a process to be completed

>
{Datetime}</DeadlineAt>
51
          <ProcessLink
ProcessLink

Task-process reference

>
{String}</ProcessLink>
52
          <FolderId
FolderId

File folder id for a spesific file container or forlder.

>
{Integer}</FolderId>
53
          <Name
Name

Verbose folder text in english.

>
{String}</Name>
54
          <FolderLink
FolderLink

Company folder id

>
{String}</FolderLink>
55
     </AssignedTo>
56
     <ResponsibleRole
ResponsibleRole

Role (department etc.) responsible for a task

>
57
          <RoleId
RoleId

Role identifier

>
{Integer}</RoleId>
58
          <Name
Name

Name of the role

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

Description of the role

>
{String}</Description>
60
          <RoleLink
RoleLink

Role reference

>
{String}</RoleLink>
61
     </ResponsibleRole>
62
     <TaskLink
TaskLink

Task reference

>
{String}</TaskLink>
63
</Task>
1
{
2
     "task": {
3
          "taskId
TaskId

Unique task identifier

":
"{Integer}",
4
          "type
Type

The type of the task

Possible domain values can be found here

":
"{String}",
5
          "status
Status

The status of a task

Possible domain values can be found here

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

The title/summary of the task

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

The description of the task

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

The priority of the task.

Possible domain values can be found here

":
"{Integer}",
9
          "isPrivate
IsPrivate

True if the task is only visible for the creator of the task

":
"{Boolean}",
10
          "deadlineAt
DeadlineAt

Date and time of when this task must be completed.

":
"{Datetime}",
11
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
12
          "startedAt
StartedAt

The date and time when the task was started (status="In progress")

":
"{Datetime}",
13
          "completedAt
CompletedAt

The full date and time when a task was completed

":
"{Datetime}",
14
          "activity
Activity

Task type: Email, Phone call, Followup

Possible domain values can be found here

":
"{Integer}",
15
          "totalRegisteredHours
TotalRegisteredHours

Aggregate hours registered for task

":
"{Decimal}",
16
          "completedBy
CompletedBy

The user who completed the task

":
{
17
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

":
"{String}",
20
               "userLink
UserLink

User reference

":
"{String}"
21
          },
22
          "reviewedBy
ReviewedBy

Information about the user who approved or rejected the task.

":
{
23
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

":
"{String}",
26
               "userLink
UserLink

User reference

":
"{String}"
27
          },
28
          "createdBy
CreatedBy

Information about the user who created the task.

":
{
29
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

":
"{String}",
32
               "userLink
UserLink

User reference

":
"{String}",
33
               "canView
CanView

Grants permission to view task

":
"{Boolean}",
34
               "canEdit
CanEdit

Grants permission to edit task

":
"{Boolean}",
35
               "canDelete
CanDelete

Grants permission to delete task

":
"{Boolean}",
36
               "canAssign
CanAssign

Grants permission to assign task

":
"{Boolean}",
37
               "canChangeStatus
CanChangeStatus

Grants permission to assign task

":
"{Boolean}"
38
          },
39
          "createdInCompany
CreatedInCompany

The compnay the task was created in

":
{
40
               "companyId
CompanyId

Company identifier

":
"{Integer}",
41
               "database
Database

Abbreviation/code to identify the company

":
"{String}",
42
               "companyLink
CompanyLink

Company reference

":
"{String}"
43
          },
44
          "assignedTo
AssignedTo

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

":
{
45
               "employeeId
EmployeeId

Employee identifier

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

Last name of employee

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

First name of employee

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

Employee reference

":
"{String}",
49
               "processId
ProcessId

Unique identifier for Process

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

The name of this process

":
"{String}",
51
               "deadlineAt
DeadlineAt

Date and time for all the Tasks under a process to be completed

":
"{Datetime}",
52
               "processLink
ProcessLink

Task-process reference

":
"{String}",
53
               "folderId
FolderId

File folder id for a spesific file container or forlder.

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

Verbose folder text in english.

":
"{String}",
55
               "folderLink
FolderLink

Company folder id

":
"{String}"
56
          },
57
          "responsibleRole
ResponsibleRole

Role (department etc.) responsible for a task

":
{
58
               "roleId
RoleId

Role identifier

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

Name of the role

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

Description of the role

":
"{String}",
61
               "roleLink
RoleLink

Role reference

":
"{String}"
62
          },
63
          "taskLink
TaskLink

Task reference

":
"{String}"
64
     }
65
}

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 101013 HTTP 404 Sub-module not found
Error 105887 HTTP 404 The cause not found.
Error 101420 HTTP 404 Setting definition not found
Error 106156 HTTP 400 Department cannot be empty.
Error 106155 HTTP 400 OccuredAt cannot be empty.
Error 105858 HTTP 400 Responsible cannot be empty.
Error 105061 HTTP 400 Private task cannot be part of a non-private process
Error 105062 HTTP 400 Non-private task cannot be part of a private process
Error 105060 HTTP 400 Private task can be added to a private process only if both were created by the same user
Error 107952 HTTP 400 You are not authorized to change status of this task
Error 108114 HTTP 400 Only pre production tasks can be approved
Error 108125 HTTP 403 You're not authorized to edit the reviewer of this task
Error 107327 HTTP 400 You are not authorized to to approve or reject this task
Error 107367 HTTP 400 Cannot close the task. Unchecked required checklist items remaining.