Update a Task

Updates a task.

Method

PUT /task/{id}/

Parameters

Request Body

A JSON object with the following properties:

Name Type Description
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. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
followUp String The follow-up date for the task. Default format* yyyy-MM-dd'T'HH:mm:ss.SSSZ.
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 tenant id of the task. Note: the tenant id cannot be changed; only the existing tenant id can be passed.

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.
404 application/json If the corresponding task cannot be found

Example

Request

PUT /task/aTaskId/

Request Body:

{
  "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" : "tenantId"
}

Response

Status 204. No content.

On this Page: