PUT /api-web/api/bpm/tasks/{taskId}

As of Version

product version 2020 Autumn | component version 

Request MethodPOST
Response FormatHTTP status code
Description

Updates a task specified by its taskId. The task action is defined in JSON format in the request body.

Response HTTP status codes:

HTTP Status CodeMeaning
200The action was executed.
400

The body contains an invalid value or the assignee is missing while the action requires it.

404

The specified task was not found.

Request Example

https://<host>/api-web/api/bpm/tasks/4345abc-acb3485739-ef3

request body
{
  "action": "claim",
  "attachments": [
    "string"
  ],
  "subject": "string",
  "variables": [
    {
      "name": "string",
      "scope": "string",
      "type": "string",
      "value": {}
    }
  ]
}
Response Example

200 OK

response body
{
  "assignee": {
    "id": "string",
    "title": "string"
  },
  "attachments": [
    "string"
  ],
  "claimTime": "string",
  "createTime": "string",
  "description": "string",
  "formKey": "string",
  "id": "string",
  "initiator": {
    "id": "string",
    "title": "string"
  },
  "name": "string",
  "owner": {
    "id": "string",
    "title": "string"
  },
  "parentTaskId": "string",
  "processDefinition": {
    "description": "string",
    "id": "string",
    "idPrefix": "string",
    "name": "string"
  },
  "subject": "string",
  "suspended": true,
  "variables": [
    {
      "name": "string",
      "scope": "string",
      "type": "string",
      "value": {}
    }
  ]
}