The following sample PUT request updates a complete task:
PUT http://localhost:8080/cmx/cs/localhost-orcl-DS_UI1/task/urn:b4p2:15934
{
taskType: {name:"UpdateWithApprovalWorkflow"},
taskId: "urn:b4p2:15934",
owner: "John",
title: "Smoke test task - updated",
comments: "Smoke testing - updated",
attachments: [
{
id: "TEMP_SVR1.1VDVS"
}
],
dueDate: "2015-08-15T00:00:00",
status: "OPEN",
priority: "HIGH",
creator: "admin",
createDate: "2015-06-15T00:00:00",
updatedBy: "admin",
lastUpdateDate: "2015-06-15T00:00:00",
businessEntity: "Person",
orsId: "localhost-orcl-DS_UI1",
processId: '3719',
taskRecord: [{
businessEntity:{
name: 'Person',
key:{
rowid: '123',
systemName: '',
sourceKey: ''
}
}
}]
}