Creates a new Target Run for a Stage Run.
Adds a device-level execution record to the specified Stage Run, identifying the Target (device) that the stage should now also act on. Not recommended for pipelines that are currently running.
About Target Runs A Target Run is the execution record of one device (Target) within a Stage Run. Creating one directly is an advanced operation, typically used to add a device to an in-progress or newly created stage run outside of the normal automatic scoping from the stage's Target Lists.
Key Fields / Query Parameters
stage_run_id— UUID of the Stage Run to add the Target Run totarget_id— UUID of the Target (device entry) this run applies todevice_name— Display name of the devicedevice_alias— Display alias of the device
Security
pipelines_SCAPIAuthToken
- Mock serverhttps://develop-api.esper.io/_mock/openapi/pipelines/v0/stageruns/{stage_run_id}/targetruns/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/pipelines/v0/stageruns/{stage_run_id}/targetruns/
curl -i -X POST \
'https://develop-api.esper.io/_mock/openapi/pipelines/v0/stageruns/{stage_run_id}/targetruns/' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"target_id": "d3bcdc92-4191-401b-ad0c-42056c6efab9",
"device_name": "string",
"device_alias": "string"
}'Response
{ "code": 0, "message": "string", "content": [ { … } ] }