Im currently working on calling usertasklist api for assign task and complete task which are of type PATCH. We are using camunda 8.6v. When i run through postman - im getting the below attached error. I have checked from UI if I click on complete task - it works but the same call when I do it through postman - it fails with this 400 error
“This operation is not supported using Tasklist V1 API. Please use the latest API. For more information, refer to the documentation”
I refered the documentation for API and using the same v1 version mentioned.
Here are few more screenshots of my bpmn diagram properties. Please suggest what is causing this issue. Thanks in advance.
Hi @sahithi.gajjelly, welcome to the forums! The answer is actually in the error message you see in Postman. It directs you to this page in the docs:
There are two user task types: Camunda/Zeebe user tasks, and job worker user tasks. For the Camunda user task, which you have selected, there are different endpoints for different actions. That documentation page lists the API endpoints you need.
@sahithi.gajjelly - Web Modeler doesn’t complete tasks, so I’m not sure what you’re seeing or where in Modeler that is happening. If you select “Camunda user task” for your user task type, you must use the /v2/user-tasks/:userTaskKey/completion endpoint. (Note: The job worker-based user tasks are deprecated so I do not recommend switching the type!)