Send UiPath Orchestrator API to Start a Job

Hello,

I want to start a job using API. I have been following tutorial from this tutorial but I keep encountering errors.

{
    "message": "You are not authenticated!",
    "errorCode": 0,
    "result": null,
    "targetUrl": null,
    "success": false,
    "error": {
        "code": 0,
        "message": "You are not authenticated!",
        "details": "You should be authenticated (sign in) in order to perform this operation.",
        "validationErrors": null
    },
    "unAuthorizedRequest": true,
    "__abp": true
}

API Body

{
    "startInfo": {
        "ReleaseKey": "52226e00-xxxx-xxxx-xxxx-xxxxxxxxx",
        "JobsCount": 1,
        "Strategy": "Specific",
        "InputArguments": "{}",
        "MachineRobots": [
            {
                "RobotId": 100809,
                "MachineId":117452
            }
        ]
    }
}

API Header

"X-UIPATH-OrganizationUnitId" : "55412"

is there anything wrong? Thank you!

Please let us know if Orchestrator HTTP activity is used or not. Thanks

Thank you for your reply. I don’t use Orchestrator HTTP activity, but I use Postman instead

then we recommend to go through the Authentication part (which one was used, OAuth2?) and also ensure that an external application is configured.

Maybe the following will help for the start

2 Likes

Thank you, my problem has been solved. I missed the get token API step.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.