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"
}
Update an existing subscriber in a specific list.
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"
}
Show subscriber_data properties
male or female.YYYY-MM-DD format.MM-DD format.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"
}