Hello Neeraj
Thanks for the answer. I am creating a system that can login in to the machines and run processes. To login, I have to be able to run the login process on the machine when it has the state "LoggedOut" since that is the appropriate time to call login. This works fine from the "Control" section of the Blue Prism software, and it also works fine using an AutomateC.exe call. But it seems to me that a wrong check has simply been implemented in the REST API since it denies creating a session in this case. I would speculate that some extra check like resourceStatus==Idle or something has been implemented in some layer of the API, and that this is simply a mistake...
EDIT: the exact version of Blue Prism is 7.1.1