Skip to main content
PUT
https://api2.ecomailapp.cz
/
lists
/
{list_id}
/
update-subscriber
curl -X PUT https://api2.ecomailapp.cz/lists/1/update-subscriber \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "foo@bar.cz",
    "subscriber_data": {
      "name": "Jan",
      "surname": "Novak",
      "gender": "male",
      "company": "Company name",
      "city": "Praha",
      "custom_fields": { "SHOP": "myshop.cz" },
      "tags": ["tags"],
      "groups": { "grp_5a145ee75780f": ["Category 1", "Category 2"] }
    }
  }'
{
  "id": 12345,
  "name": "Jan",
  "surname": "Novak",
  "email": "foo@bar.cz",
  "gender": "male",
  "bounce_soft": 0,
  "bounce_hard": null,
  "bounce_message": null,
  "inserted_at": "2022-11-15 13:59:21"
}
list_id
integer
required
ID of the list.
email
string
required
Email address of the subscriber to update.
subscriber_data
object
Updated subscriber information.
curl -X PUT https://api2.ecomailapp.cz/lists/1/update-subscriber \
  -H "key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "email": "foo@bar.cz",
    "subscriber_data": {
      "name": "Jan",
      "surname": "Novak",
      "gender": "male",
      "company": "Company name",
      "city": "Praha",
      "custom_fields": { "SHOP": "myshop.cz" },
      "tags": ["tags"],
      "groups": { "grp_5a145ee75780f": ["Category 1", "Category 2"] }
    }
  }'
{
  "id": 12345,
  "name": "Jan",
  "surname": "Novak",
  "email": "foo@bar.cz",
  "gender": "male",
  "bounce_soft": 0,
  "bounce_hard": null,
  "bounce_message": null,
  "inserted_at": "2022-11-15 13:59:21"
}