Hi Experts,
I am very new to Uipath. I am using the Uipath community version and want to run a process on a robot by using the orchestrator api call.
Can some one please provide detailed steps how to go about it.
Thanks,
Sid
Hi Experts,
I am very new to Uipath. I am using the Uipath community version and want to run a process on a robot by using the orchestrator api call.
Can some one please provide detailed steps how to go about it.
Thanks,
Sid
First call the authenticate Api which provide Access Token as output.
https://platform.uipath.com/api/account/authenticate
Use this accesstoken in headers when calling the Job Api
https://platform.uipath.com/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs
Navigate to this link to know more about it under the section EXAMPLES USING THE ORCHESTRATOR API
https://docs.uipath.com/orchestrator/reference#processes-requests
HI Sreelatha,
Thanks for your response, i tried testing the authenticate api this using postman. However i am getting the message invalid credentials, failed to login error.
Below is what i used:
Header:
Content-Type: application/json
Body:
{
“tenancyName” : “My tenancy name”,
“usernameOrEmailAddress” : “My email id”,
“password” : “password”
}
Response:
{
“message”: “Invalid credentials, failed to login.”,
“errorCode”: 1000,
“resourceIds”: null
}
Based on some of the other posts my understanding is this was changed for cloud based orchestrator some time in June/july this year. I am using the community version. Not sure how to proceed.
You don’t need to use that as you already have the access token available from the previous requests @SiddharthSSA. Try that token and let me know if you still have issues
@HareeshMR : I am sorry but i do not have the access token. My understanding was we need to use the authenticate api to get the token and use that(Bearer + token) with subsequent api calls. I am at the very first step, trying to get the access token.
Check this post @SiddharthSSA
Thanks for sharing this. I followed the steps in the post till the authenticate step below:
Now as we have to authenticate with the URL in the previous versions of API, we need to send the final request for the URL
URL : https://platform.uipath.com/api/account/authenticate
Authorization code : ID token we got above
Header : Content-Type: application/json
Body : {
"tenancyName" : "Documentation",
"usernameOrEmailAddress" : "Documentation",
"password" : "DocumentationAPItest"
}
which will give us the access token which we can use for all the remaining requests like start job etc.,
My question where do we pass the Authorization code mentioned above, i am using Postman.
We have authorization left to the headers section in postman right? You can pass it there and as you already have the token you don’t need to send this request as per the discussion below in the above thread I attached
So i skipped the authenticate part and i tried some calling one of the api to Retrieve the Environments a Package
Type: GET
http://platform.uipath.com/odata/Releases?$filter=ProcessKey eq ‘add_queue_items’&$select=EnvironmentNam
used Bearer Token
But getting the error:message": “You are not authenticated!”,
“details”: "You should be authenticated (sign in) in order to perform this operation