Updates a Target in a Pipeline Target List.
Updates the device_name and is_active fields of the specified Target record; this is a full-replacement update, so include both fields in the request. Not recommended for pipelines that are currently running.
About Targets A Target represents a single device entry within a Target List. Updating a Target most commonly toggles is_active to include or exclude that device from future pipeline runs without removing the record entirely.
Key Fields / Query Parameters
target_id— UUID of the Target to updatedevice_name— Updated display name for the deviceis_active— Whether the Target should be included in pipeline runs
Security
pipelines_SCAPIAuthToken
- Mock serverhttps://develop-api.esper.io/_mock/openapi/pipelines/v0/pipelines/{pipeline_id}/targetlists/{targetlist_id}/targets/{target_id}/
- https://develop-api.esper.cloud/apihttps://develop-api.esper.cloud/api/pipelines/v0/pipelines/{pipeline_id}/targetlists/{targetlist_id}/targets/{target_id}/
curl -i -X PUT \
'https://develop-api.esper.io/_mock/openapi/pipelines/v0/pipelines/{pipeline_id}/targetlists/{targetlist_id}/targets/{target_id}/' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"device_name": "string",
"is_active": true
}'Response
{ "code": 0, "message": "string", "content": { "id": "string", "pipeline_id": "ec036e81-7903-4e4d-bbfa-ac8516341cf0", "device_id": "3bafab7b-4400-4bcf-8e6e-09f954699940", "device_name": "string", "device_alias": "string", "is_active": true, "created_by": 0, "updated_by": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z" } }