Skip to main content
POST
/
task
/
create
Create
curl --request POST \
  --url http://{host}:{port}/{contextPath}/task/create \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "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.000+0200",
  "followUp": "2014-08-25T10:00:00.000+0200",
  "parentTaskId": "aParentTaskId",
  "caseInstanceId": "aCaseInstanceId",
  "tenantId": null
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
id
string | null

The task id.

name
string | null

The task name.

assignee
string | null

The assignee's id.

owner
string | null

The owner's id.

created
string<date-time> | null

The date the task was created on. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

lastUpdated
string<date-time> | null

The date the task was last updated. Every action that fires a task update event will update this property. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

due
string<date-time> | null

The task's due date. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

followUp
string<date-time> | null

The follow-up date for the task. Default format yyyy-MM-dd'T'HH:mm:ss.SSSZ.

delegationState
enum<string> | null

The task's delegation state. Possible values are PENDING and RESOLVED.

Available options:
PENDING,
RESOLVED
description
string | null

The task's description.

executionId
string | null

The id of the execution the task belongs to.

parentTaskId
string | null

The id the parent task, if this task is a subtask.

priority
integer | null

The task's priority.

processDefinitionId
string | null

The id of the process definition the task belongs to.

processInstanceId
string | null

The id of the process instance the task belongs to.

caseExecutionId
string | null

The id of the case execution the task belongs to.

caseDefinitionId
string | null

The id of the case definition the task belongs to.

caseInstanceId
string | null

The id of the case instance the task belongs to.

taskDefinitionKey
string | null

The task's key.

suspended
boolean | null

Whether the task belongs to a process instance that is suspended.

formKey
string | null

If not null, the form key for the task.

camundaFormRef
object
tenantId
string | null

If not null, the tenant id of the task.

taskState
string | null

The task's state.

Response

Request successful.