Complete a task using api rest

Good day.
I want to finish a task using bonita's rest api.
What is the endpoint or endpoints that I should use?

I have already managed to take or release a task with the endpoint
http://localhost:8080/bonita/API/bpm/humanTask/1240015
and with the bodysuit
{"assigned_id":4 }

but if i want to set
{"state": "completed"}
it does not allow me to do this put

some help?

1 Like

Hello
I am also looking for answer for this question.
If you find a Solution , please post the answer here along with code examples.

thanks

put url

http://localhost:8080/bonita/API/bpm/humanTask/1280124

I want to make a put to the task and I fulfill the expected contract

{    "state": "completed",

    "serviceRequestInput": [  {

            "notas": "notas aqui"

        }    ]}

but it answers me

"message": "USERNAME=walter.bates | org.bonitasoft.engine.bpm.contract.ContractViolationException: Error while validating expected inputs: Expected input [serviceRequestInput] is missing"

Thanks for commenting on a solution.