curl -X PUT https://api2.ecomailapp.cz/lists/1/update-subscriber-bulk \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subscriber_data": [
{
"email": "foo@bar.cz",
"name": "Jan",
"surname": "Novak",
"custom_fields": { "shop": "myshop.cz" },
"tags": ["vip"]
},
{
"email": "foo2@bar.cz",
"name": "Jana"
}
],
"allow_resubscribe": false
}'
{
"updates": 2
}
Update multiple existing subscribers in a specific list in a single request.
curl -X PUT https://api2.ecomailapp.cz/lists/1/update-subscriber-bulk \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subscriber_data": [
{
"email": "foo@bar.cz",
"name": "Jan",
"surname": "Novak",
"custom_fields": { "shop": "myshop.cz" },
"tags": ["vip"]
},
{
"email": "foo2@bar.cz",
"name": "Jana"
}
],
"allow_resubscribe": false
}'
{
"updates": 2
}
Documentation Index
Fetch the complete documentation index at: https://docs.ecomail.cz/llms.txt
Use this file to discover all available pages before exploring further.
Show subscriber object properties
1 = subscribed, 2 = unsubscribed, 4 = hard bounce.SHOP, shop and Shop are treated as the same field. Two keys that differ only in case or whitespace within the same subscriber are rejected as duplicates.status is set to 1.curl -X PUT https://api2.ecomailapp.cz/lists/1/update-subscriber-bulk \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"subscriber_data": [
{
"email": "foo@bar.cz",
"name": "Jan",
"surname": "Novak",
"custom_fields": { "shop": "myshop.cz" },
"tags": ["vip"]
},
{
"email": "foo2@bar.cz",
"name": "Jana"
}
],
"allow_resubscribe": false
}'
{
"updates": 2
}