Hi everyone! I am trying to execute a task by REST API using soapUI.
I use PUT /API/userTask/{userTaskId}/execution, with the json updating variables.
We check permission task_management to our user. Finally set the cookie JSESSIONID=7D5FD1B9E0609353C314D6FF700D663C; Path=/bonita/; HttpOnly
But the resourse response HTTP/1.1 403 Prohibido.
Do you know where the mistake is?
Thanks!
As Sean said, you need to be logged in to use REST API.
So first call http://host:port/bonita/loginservice, and take “Cookie” header from the response. Copy this “Cookie” header to your next API call (in soapUI you can easily add headers to the request).
Alternatively you can log into Bonita Portal using web browser, and copy “Cookie” header from there.
Best regards,
bpms.help
have you logged in first?
if not, then you can’t do anything…
regards
Hi! Thank you very much. Yes, we already do that step.
But, is necessary also get the cookie from the /API/system/session/unusedid and add the cookies.finally add the X-Bonita-API-Token header.
Best regards!