Hi Pablito,
Thanks for you response. Here is my APIs call sequence.
API Call 1 | Get token : https://account.uipath.com/oauth/token
API Call 2 | Get Process release key :https://cloud.uipath.com/thermgusrgik/thermofisheiv4n598144/odata/Releases?$filter=ProcessKey eq ‘BlankProcess’
{
“@odata.context”: “https://cloud.uipath.com/thermgusrgik/thermofisheiv4n598144/odata/$metadata#Releases”,
“@odata.count”: 2,
“value”: [
{
“Key”: “104ce5df-5380-486a-9f71-XXXXXXXXXX”,
“ProcessKey”: “BlankProcess”,
“ProcessVersion”: “1.0.2”,
“IsLatestVersion”: false,
“IsProcessDeleted”: false,
“Description”: “Blank Process”,
“Name”: “BlankProcess”,
“EnvironmentId”: null,
“EnvironmentName”: “”,
“InputArguments”: null,
“ProcessType”: “Process”,
“SupportsMultipleEntryPoints”: false,
“RequiresUserInteraction”: true,
“AutoUpdate”: false,
“FeedId”: “87bd30cc-e088-4fc0-9245-YYYYYYYYYY”,
“JobPriority”: “Normal”,
“CreationTime”: “2020-09-23T02:55:26.057Z”,
“OrganizationUnitId”: 598628,
“OrganizationUnitFullyQualifiedName”: “Shared”,
“Id”: 164294,
“Arguments”: {
“Input”: null,
“Output”: null
},
“ProcessSettings”: null
},
API Call 3 | Get Robot Id : https://cloud.uipath.com/thermgusrgik/thermofisheiv4n598144/odata/Robots
Passing all the headers including OrganizationUnitId as 598628, but I am not getting any robot Id.
{
“@odata.context”: “https://cloud.uipath.com/thermgusrgik/thermofisheiv4n598144/odata/$metadata#Robots”,
“@odata.count”: 0,
“value”:
}
API Call 4.a | StartJobs : https://cloud.uipath.com/thermgusrgik/thermofisheiv4n598144/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs
I do not know what to pass RobotIds, as Expected it errored.
{ "startInfo":
{ "ReleaseKey": "104ce5df-5380-486a-9f71-XXXXXXXXXX",
"Strategy": "Specific",
"RobotIds": [ 1234 ],
"JobsCount": 0,
"Source": "Manual"
}
}
here is response.
{
"message": "Couldn't find any unattended robot in the specified folder.",
"errorCode": 1671,
"resourceIds": null
}
API Call 4.b | StartJobs : https://cloud.uipath.com/thermgusrgik/thermofisheiv4n598144/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs
Tried to call only with Releasekey and Strategy as ALL, without Robot Id.
{ "startInfo":
{ "ReleaseKey": "104ce5df-5380-486a-9f71-XXXXXXXXXXX",
"Strategy": "All"
}
}
here is response.
{
"message": "The job strategy All is not supported in modern folders",
"errorCode": 2815,
"resourceIds": null
}