Getting 401 unauthorized error in web rest API

1
0
-1

Hello everyone,

I am new to Bonita BPM and trying to start a case from Web Rest API. I have call the http://localhost:8080/bonita/loginservice first and it gives me back token, I am sending another request to start the case
Request URL http://localhost:8080/bonita/API/bpm/case/
Request Method POST
Request Payload {"processDefinitionId": 1}

but its sending me back 401 not unauthorized error. Do I need to do some config changes or am I missing something?

Will really appreciate help from you guys.

Thanks

2 answers

1
0
-1
This one is the BEST answer!

Have you checked the UserId you've logged in with can execute the process? Are they one of the allowed actors?

As others have not seen this issue I can't think of any other reason for this issue,

regards
Seán

PS: As this reply answers your question, please mark as resolved by ticking the tick mark on the left of this reply.

1
0
-1

Thanks Sean, I have used the appropriate user which fixed my issue.

Notifications