Unable to Start Job from APIGetting "startJobParameters must not be null"

Hello, we are having troubles trying to start a job from API.

We are able to make the authentication correctly and also get the releases in order to get the resource key, buy when we try to start it, (it is a parameterless process), we get the mentioned error.

These are the details of the request:

URL: https://orchestratorserver/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs
Headers:
“cache-control” : “no-cache”
“Content-Type”: “application/json”
“Authorization”: “Bearer …”
“X-UIPATH-OrrganizationUnitId” : “16”

Body:
{“startInfo”:
{“ReleaseKey”:“8dacd33b-39e8-4c9b-a60e-0d5641cdfe74”,
“Strategy”: “All”,
“RobotIds”:,
“InputArguments”:,
“JobsCount”:1,
“OrganizationUnit”:16
}
}

Response:
{“message”:“startJobParameters must not be null”,“errorCode”:0,“resourceIds”:null}

Can you please help us?

Thanks in advance

Hello,

Pls follow the below link.

Sorry but it is no the same error

Solved.

The problem was that I was trying to pass the OrganizationUnitId in the body:

“OrganizationUnit”:16

If I remove it, it works like a charm.

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