Execute a task by REST API using SOAPUI error 403

1
0
-1

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!

Comments

Submitted by Sean McP on Tue, 10/04/2016 - 23:42

have you logged in first?

if not, then you can't do anything...

regards

1 answer

1
0
-1

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

Comments

Submitted by veroagite on Wed, 10/12/2016 - 01:29

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!

Notifications