To manage and browse executions of your Tasks, Plans and Promotions, please use the correct objects in the processing entity.
As per our API doc https://api.talend.com/apis/processing/2021-03/ and PlanExecutable section, the object step identifier(stepId) should be equivalent to stepExecutionID.
For example:
{
"executable": "b91cf8b2-5dd1-4b18-915b-4c447cee5267",
"executionPlanId": "0798b8d1-0e12-472f-be02-a0f04e792daa",
"rerunOnlyFailedTasks": true,
"stepId": "09043c9f-02d0-41f6-b3cb-0ea53ffde377"
}
If we put stepId in the field, it is likely to get exception when calling API to execute plan
"Validation do not allow processing entity"
The solution is to get all steps for a plan execution (order by designed execution, only steps, without error handlers) to gain stepExecutionID from query by issuing this API
{{apiUrl}}/processing/executions/plans/:planExecutionId/steps
And the executionID in the successful response array of StepExecution is the one you need to select and put in the stepID field of API call post /processing/executions/plans
Environment
various Talend Products