API automation with Unattended bot

Will API automation to start a job using http activities works with unattended bot

1 Like

Hey @soma.shruthi

Why not, It works like a gem !

Access the API playground <orchestrator URL>/swagger

Thanks
#nK

Hi @Nithinkrishna

My doubt is i need to access the uipath orchestrator api by clicking the button in webpage. Is this possible with unattended bot. and can we acheive this without installation of uipath in the local machine

1 Like

Hey @soma.shruthi

Of course yes.

This is the primary scenarios for which we have APIs.

You will be adding a button to webpage with a small code to call the Orchestrator API function to start the job.

Once the above change in done in the web app, you are good to go.

This doesn’t require any UiPath installation from where you do the webpage button click.

But obviously there will be a robot running remotely to perform the job.

Hope this helps.

Thanks
#nK

Currently i am using uipath with version 20.4.3. Will API playground <orchestrator URL>/swagger works here or do i need to update it to the latest version. Can you please suggest

1 Like

Hey @soma.shruthi

It works !

Thanks
#nK

Hi @Nithinkrishna

Do we need to have authorization token to continue with swagger.or for ex.
can we directly execute the start job directly from swagger.
Can you please help.

Thanks,
Shruthi

1 Like

Hi @soma.shruthi,

Please check the below link it has the stuff which you need.

https://postman.uipath.rocks/view/3707132/RWTeV24p/#fbe9adf1-8ed9-46e0-b65a-8a1432bdcd65

Hey @soma.shruthi

Yes from swagger you can directly execute.

Provided you logged in to the orchestrator in a different tab.

Thanks
#nK

Hi @Nithinkrishna

Is it possible to call the Orchestrator server with API call. If possible Can you please suggest the method to perform.

1 Like

Hey @soma.shruthi

When you say call orchestrator server, please let me know the exact function you are trying to perform ?

Thanks
#nK

I need to run the job in orchestrator server by clicking the button in webpage. Is that possible??

1 Like

Great, It is possible.

You can see I’m accessing the API playground from my orchestrator.

Please do the same for yours which will help you achieve this.

<orch URL>/swagger

Thanks
#nK

Hi @Nithinkrishna

Here the domain name is different. Url doesn’t start with cloud.uipath.com.we have IdentityServer.Integration.Authority included in the orchestrator url.
Can you please suggest the possibility

Thanks,
Shruthi

1 Like

Hey @soma.shruthi

URL can be anything.

Just use your URL followed by “/swagger”

That will navigate you to the API playground.

Hope that helps

Thanks
#nK

I am able to navigate to the swagger now. But not able to find start job option here.



Can you please check this attachments once

1 Like

Hey @soma.shruthi

Just go to Jobs & Click on it to expand and see all the job related endpoints.

Please let know if you face any difficulty.

Thanks
#nK

I am not able to find jobs Section in the 2nd screenshot.






Thanks,
Shruthi

1 Like

Hey @soma.shruthi

Are you checking in here,

image

You need to check in the above orchestrator API swagger.

Thanks
#nK

I am able to check in Web API. I need the same in Identity server API.

Thanks,
Shruthi

1 Like