Question about external application api trigger

Im using postman to call a job. I don’t know why if I put payload like this

{
“startInfo”: {
“ReleaseKey”: “42b665b2-4c8a-42e5-bb75-4c50ab7edb93”,
“Strategy”: “Specific”,
“RobotIds”: [1976548],
“JobsCount”: 0,
“NoOfRobots”: 0,
“RuntimeType”: “Unattended”,
“InputArguments”: “{}”
}
}

Its work

but when I used this

{
“startInfo”: {
“ReleaseKey”: “42b665b2-4c8a-42e5-bb75-4c50ab7edb93”,
“Strategy”: “ModernJobs”,
“RobotIds”: ,
“NoOfRobots”: 1
}
}

error {
“message”: “startJobParameters must not be null”,
“errorCode”: 0,
“traceId”: “00-2769107ee258a671e37fa75c3658b651-85f1e1750bfea2c3-00”
}

Hi @Thanapas_Kritsadakamtorn,

{
“startInfo”: {
“ReleaseKey”: “42b665b2-4c8a-42e5-bb75-4c50ab7edb93”,
“Strategy”: “ModernJobs”,
“RobotIds”: ,
“NoOfRobots”: 1
}
}

In this api, there is no value present for the key RobotIds, if we don’t have any specific RobotIds I believe we have to pass an empty array [] like this.

{
“startInfo”: {
“ReleaseKey”: “42b665b2-4c8a-42e5-bb75-4c50ab7edb93”,
“Strategy”: “ModernJobs”,
“RobotIds”: [],
“NoOfRobots”: 1
}
}

Regards,
Dheephiga

Hi dheephiga.am
Thx for ur reponse but I do use that but still not work

@Thanapas_Kritsadakamtorn

please try this ..I see this is working

{
  "startInfo": {
    "ReleaseName": "BlankProcess",
    "Strategy": "ModernJobsCount",
    "Source": "Manual",
    "RuntimeType": "Unattended",
    "InputArguments": "{}"
  }
}

cheers

Thanks @Anil_G
but I do wonder why can’t use that body payload because I following that example (change Strategy to ModernJobs) could you explain to me

@Thanapas_Kritsadakamtorn

There are few mistakes in the documentation

First if you try on swagger you would see input argumnets is mandate always..if you remove it would throw the same error always

Cheers

1 Like

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