Hi community,
I am trying to start a job using the restsharp with the code as below.
client = new RestClient(“https://platform.uipath.com/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs”);
request = new RestRequest(Method.POST);
request.AddHeader(“cache-control”, “no-cache”);
request.AddHeader(“content-type”, “application/json”);
request.AddHeader(“Authorization”, ""Bearer " + auth + “"”);
request.AddParameter(“value”, “{\n "startInfo":\n {\n "ReleaseKey":"779b788f-07a5-4949-9a98-0200bf135acf",\n"RobotIds":[137032],\n"NoOfRobots":0,\n"Strategy":"Specific", "Source":"Manual" \n}\n}”);
response = client.Execute(request);
I get errorcode = unknownError. Below is the snap of response that i am getting.
Also I see that no job is Run. I am stuck here.
Please suggest whats the required change that i need to make.