The token is obtained by a previous Logon Call and that call is working for me. So I suspect it is passing of the authorization token, that’s not working.
I need some kind soul to help me with this ASAP. Before I’m asked - Yes, have raised support case but waiting time is killing me and hoping for a faster response from real users.
The body is optional per my testing using POSTMAN. The response is same in UiPath with / without the body - it complains that the token as either expired / invalid / missing. As you may see in POSTMAN it is a POST method only as per the documentation.
It didn’t work by getting token in one call and passing hard coded value, I’m not sure what was the issue there.
However, I have got this resolved now. It seems that the token is received with quotes, which were not part of the token itself. So passing that whole was breaking the call. I stripped the quotes and it worked like a treat.