Update a task

PUT {{baseUrl}}/tasks/:taskId

Update the task data based on a given task id.
For task assignment updates :
Task assignments are supported for user or group targets, which are managed using Admin center.
For task assignment to a user, the user should be a valid user in the provided tenant and subscription context, and user email id should be provided.
For task assignment to a group, the group should be a valid application role or a group with associated user mappings in the provided tenant and subscription context, and application role name or group name should be provided.

Request Body

{"assignee"=>"Initiator", "assigneeSet"=>true, "category"=>"SampleCategory", "categorySet"=>true, "delegationState"=>"pending", "delegationStateSet"=>false, "description"=>"SampleDescription", "descriptionSet"=>false, "dueDate"=>"1966-12-30T17:11:06.138Z", "duedateSet"=>false, "formKey"=>"SampleFormKey", "formKeySet"=>false, "includeGroupIds"=>false, "includeUserIds"=>false, "name"=>"Sample Task", "nameSet"=>false, "owner"=>"Admin", "ownerSet"=>true, "parentTaskId"=>"10c19684-1756-11ea-ad8a-eeee0aff2e87", "parentTaskIdSet"=>false, "priority"=>5, "prioritySet"=>false}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"assignee":"John","assignments":[{"group":"testgroup","type":"assignee","user":"testCandidate@test.com"},{"group":"testgroup","type":"assignee","user":"testCandidate@test.com"}],"category":"SampleCategory","claimTime":"2018-04-17T10:17:43.902+0000","comments":[{"author":"John","id":"e710b009-3397-11ea-b509-eeee0affefe7","message":"SampleMessage","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7","taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","time":"1983-10-01T14:13:30.693Z"},{"author":"John","id":"e710b009-3397-11ea-b509-eeee0affefe7","message":"SampleMessage","processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7","taskId":"f89f1185-3391-11ea-b509-eeee0affefe7","time":"1969-12-05T07:52:01.477Z"}],"createTime":"2018-04-17T10:17:43.902+0000","delegationState":"pending","description":"Task description","dueDate":"2018-04-17T10:17:43.902+0000","executionId":"10b19e54-1756-11ea-ad8a-eeee0aff2e87","formKey":"SampleFormKey","id":"10c19684-1756-11ea-ad8a-eeee0aff2e87","links":{"empty":true},"name":"Sample Task","owner":"John","parentTaskId":"10c196e4-1756-11ea-ad8a-eeee0aff2e87","priority":5,"processInstanceId":"f8985abd-3391-11ea-b509-eeee0affefe7","subscriptionId":"9b4c9575-e116-47df-8b7b-7948a1639803","suspended":false,"tenantId":"56adec43-d43a-4112-9f49-cd7c64d1d75b","variables":[{"encryption":false,"name":"SampleVariable","scope":"local","type":"string","value":{}},{"encryption":false,"name":"SampleVariable","scope":"local","type":"string","value":{}}]}