Skip to content

Update a target in the target list
Stable

Request

Security
SCAPIAuthToken
Path
pipeline_idstring, (uuid)required

ID of the Pipeline

targetlist_idstring, (uuid)required

ID of the Target List

target_idstring, (uuid)required

ID of the Target

Bodyapplication/jsonrequired
device_namestring
is_activeboolean
cURL
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
  }'

Responses

Updated Target from Target List

Bodyapplication/json
codeinteger
messagestring
contentobject(Target)
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" } }