Query user tasks (alpha)
POST/user-tasks/search
Search for user tasks based on given criteria.
Note that this endpoint is an alpha feature and not enabled on Camunda clusters out of the box. The Camunda 8 API (REST) Overview page provides further details.
This endpoint is an alpha feature and may be subject to change in future releases.
Request
- application/json
Body
- Array [
- ]
- Array [
- ]
sort object[]
Default value: asc
page object
filter object
User task filter request.
The key for this user task.
Possible values: [CREATED
, COMPLETED
, CANCELED
, FAILED
]
The state of the user task.
The assignee of the user task.
The priority of the user task.
The element ID of the user task.
The candidate group for this user task.
The candidate user for this user task.
The key of the process definition.
The key of the process instance.
Tenant ID of this user task.
The ID of the process definition.
variables object[]
Name of the variable.
The value of the variable.
Responses
- 200
- 400
- 500
The user task search result.
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
page object
items object[]
The key for this user task.
Possible values: [CREATED
, COMPLETED
, CANCELED
, FAILED
]
The state of the user task.
The assignee of the user task.
The element ID of the user task.
The key of the element instance.
The candidate groups for this user task.
The candidate users for this user task.
The ID of the process definition.
The key of the process definition.
The key of the process instance.
The key of the form.
The creation date of a user task.
The completion date of a user task.
The follow date of a user task.
The due date of a user task.
Tenant ID of this user task.
The external form reference.
The version of the process definition.
customHeaders object
Custom headers for the user task.
Possible values: <= 100
Default value: 50
The priority of a user task. The higher the value the higher the priority.
{
"items": [
{
"userTaskKey": 0,
"state": "CREATED",
"assignee": "string",
"elementId": "string",
"elementInstanceKey": 0,
"candidateGroups": [
"string"
],
"candidateUsers": [
"string"
],
"processDefinitionId": "string",
"processDefinitionKey": 0,
"processInstanceKey": 0,
"formKey": 0,
"creationDate": "2024-11-07T21:11:50.811Z",
"completionDate": "2024-11-07T21:11:50.811Z",
"followUpDate": "2024-11-07T21:11:50.811Z",
"dueDate": "2024-11-07T21:11:50.811Z",
"tenantId": "string",
"externalFormReference": "string",
"processDefinitionVersion": 0,
"customHeaders": {},
"priority": 50
}
],
"page": {
"totalItems": 0,
"firstSortValues": [
{}
],
"lastSortValues": [
{}
]
}
}
The user task search query failed. More details are provided in the response body.
- application/problem+json
- Schema
- Example (from schema)
Schema
Default value: about:blank
A URI identifying the problem type.
A summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code for this problem.
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
An internal error occurred while processing the request.
- application/problem+json
- Schema
- Example (from schema)
Schema
Default value: about:blank
A URI identifying the problem type.
A summary of the problem type.
Possible values: >= 400
and <= 600
The HTTP status code for this problem.
An explanation of the problem in more detail.
A URI identifying the origin of the problem.
{
"type": "about:blank",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}