Creates a new task.

Method

POST /task/create

Parameters

Request Body

A JSON object with the following properties:

Name Type Description
id String The id of the task.
name String The task name.
description String The task description.
assignee String The user to assign to this task.
owner String The owner of the task.
delegationState String The delegation state of the task. Corresponds to the DelegationState enum in the engine. Possible values are RESOLVED and PENDING.
due String The due date for the task. Format yyyy-MM-dd'T'HH:mm:ss.
followUp String The follow-up date for the task. Format yyyy-MM-dd'T'HH:mm:ss.
priority Number The priority of the task.
parentTaskId String The id of the parent task, if this task is a subtask.
caseInstanceId String The id of the case instance the task belongs to.
tenantId String The id of the tenant the task belongs to.

Result

This method returns no content.

Response Codes

Code Media type Description
204 Request successful.
400 application/json Returned if a not valid delegationState is supplied. See the Introduction for the error response format.

Example

Request

POST /task/create

Request Body:

{
  "id": "aTaskId",
  "name": "My Task",
  "description": "This have to be done very urgent",
  "priority" : 30,
  "assignee" : "peter",
  "owner" : "mary",
  "delegationState" : "PENDING",
  "due" : "2014-08-30T10:00:00",
  "followUp" : "2014-08-25T10:00:00",
  "parentTaskId" : "aParentTaskId",
  "caseInstanceId" : "aCaseInstanceId",
  "tenantId" : null
}

Response

Status 204. No content.

On this Page: