curl -X DELETE https://api2.ecomailapp.cz/recommenders/6789abc123def \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api2.ecomailapp.cz/recommenders/6789abc123def');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
[
{
"recommender_id": "abcd1234ef5678",
"feed_id": 2,
"shop_id": "my-shop",
"last_trained_timestamp": 1710000000,
"status": "ready",
"settings": {
"filtered_products": [],
"filtered_categories": [],
"included_months": []
},
"sequence_number": 2,
"name": null
}
]
{
"message": "Recommender not found."
}
Recommenders
Delete recommender
Remove a Spark recommender by its ID. Returns the updated list of remaining recommenders.
DELETE
/
recommenders
/
{recommender_id}
curl -X DELETE https://api2.ecomailapp.cz/recommenders/6789abc123def \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api2.ecomailapp.cz/recommenders/6789abc123def');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
[
{
"recommender_id": "abcd1234ef5678",
"feed_id": 2,
"shop_id": "my-shop",
"last_trained_timestamp": 1710000000,
"status": "ready",
"settings": {
"filtered_products": [],
"filtered_categories": [],
"included_months": []
},
"sequence_number": 2,
"name": null
}
]
{
"message": "Recommender not found."
}
string
required
The unique identifier of the recommender to delete.
Deleting a recommender does not recycle its
sequence_number — the account’s counter keeps growing so merge tags in existing templates never collide with a future recommender.curl -X DELETE https://api2.ecomailapp.cz/recommenders/6789abc123def \
-H "key: YOUR_API_KEY" \
-H "Content-Type: application/json"
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api2.ecomailapp.cz/recommenders/6789abc123def');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'key: YOUR_API_KEY',
'Content-Type: application/json',
]);
$response = curl_exec($ch);
curl_close($ch);
[
{
"recommender_id": "abcd1234ef5678",
"feed_id": 2,
"shop_id": "my-shop",
"last_trained_timestamp": 1710000000,
"status": "ready",
"settings": {
"filtered_products": [],
"filtered_categories": [],
"included_months": []
},
"sequence_number": 2,
"name": null
}
]
{
"message": "Recommender not found."
}
⌘I