StartJobs api call error code 400

Check this example:

Method: POST

URL: https://cloud.uipath.com/ORG_NAME/TENANT_NAME/orchestrator_/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs

Authorization: Bearer Token → provide the JWT access_token

Headers:

X-UIPATH-OrganizationUnitId: FOLDER_ID/ORG_ID
Accept: application/json
Content-Type: application/json

Body of type JSON:

{
	"startInfo": {
		"ReleaseKey": "d9fa4ce6-0d50-42cb-8af7-109b419aa39a",
		"JobsCount": 1,
		"JobPriority": "Normal",
		"Strategy": "ModernJobsCount",
		"ResumeOnSameContext": false,
		"RuntimeType": "Unattended",
		"InputArguments": "{}",
		"MachineRobots": [
			{
				"RobotId": 714236,
				"MachineId": 1752436
			}
		]
	}
}

More details can be found here: Jobs Requests

Let us know if this helped.

1 Like