Logo
OpenText Developer Cloud public resources API Documentation

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.

 

Body PARAM

Key Datatype Required Description 



HEADERS

Key Datatype Required Description 
Content-Type
string




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": "2011-11-06T15:23:15.227Z" }, { "author": "John", "id": "e710b009-3397-11ea-b509-eeee0affefe7", "message": "SampleMessage", "processInstanceId": "f8985abd-3391-11ea-b509-eeee0affefe7", "taskId": "f89f1185-3391-11ea-b509-eeee0affefe7", "time": "1957-10-10T09:42:30.260Z" } ], "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": false }, "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": {} } ] }



Curl
curl -X PUT 'baseUrl/tasks/:taskId' -H 'Content-Type: application/json' -d '{"assignee":"Initiator","assigneeSet":true,"category":"SampleCategory","categorySet":false,"delegationState":"pending","delegationStateSet":false,"description":"SampleDescription","descriptionSet":false,"dueDate":"1961-04-27T02:08:04.760Z","duedateSet":false,"formKey":"SampleFormKey","formKeySet":true,"includeGroupIds":false,"includeUserIds":false,"name":"Sample Task","nameSet":false,"owner":"Admin","ownerSet":true,"parentTaskId":"10c19684-1756-11ea-ad8a-eeee0aff2e87","parentTaskIdSet":false,"priority":5,"prioritySet":true}'

ENDPOINTS