Zeebe 8.5 rest api rejected with code 'NOT_FOUND'

Hi,
I upgraded camunda to 8.5.0, I tried to use Rest Api to operate User Task, I encountered a problem, hope to help me solve it.
request:
curl --location --request DELETE 'http://localhost:8088/v1/user-tasks/2251799822071566/assignee'
response:

{
"type": "about:blank",
"title": "NOT_FOUND",
"status": 404,
"detail": "Command 'ASSIGN' rejected with code 'NOT_FOUND': Expected to assign user task with key '2251799822071566', but no such user task was found",
"instance": "/v1/user-tasks/2251799822071566/assignee"
}

elasticsearch tasklist-task-8.5.0_

{
  "id": "2251799822071566",
  "tenantId": "<default>",
  "key": 2251799822071566,
  "partitionId": 1,
  "bpmnProcessId": "Ticket.Test",
  "processDefinitionId": "2251799814257580",
  "flowNodeBpmnId": "ticketHandling",
  "flowNodeInstanceId": "2251799822071156",
  "processInstanceId": "2251799822071152",
  "creationTime": "2024-05-29T02:41:44.217+0000",
  "completionTime": null,
  "state": "CREATED",
  "assignee": "1",
  "candidateGroups": null,
  "candidateUsers": null,
  "formKey": null,
  "formId": null,
  "formVersion": null,
  "isFormEmbedded": null,
  "followUpDate": null,
  "dueDate": null,
  "implementation": "JOB_WORKER"
}

I use camunda Self-Managed. All User Task interfaces are 404.

camunda/camunda-platform: Links to Camunda Platform 8 resources, releases, and local development config (github.com)

Unassign a user task | Camunda 8 Docs

Hi @Kric,

The below link might be of help to you

For job worker-based tasks only Tasklist API can do assignments.
Zeebe Task API can be used with zeebe user tasks.

2 Likes

Thank you very much, I found the official docs today when migrating camunda and remembered to come to the forum to reply, only to find that you replied a long time ago, I’ll have to check my email for notifications, thanks again :smile:.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.