Delete all subscribers
Deletes all users from a given subscriber list
Endpoint URI
| DELETE https://services.ownpage.fr/v1/newsletters/lists/LIST_ID/subscribers/all?status=STATUS
|
Endpoint parameters
- LIST_ID : the email list you want to modify
- X-Ownpage-Client-Token : a valid token
Query string parameters
- STATUS (values
subscribed|unsubscribed|all
, default all
): filter to remove only the subscribed users (subscribed
) or the unsubscribed ones (unsubscribed
) or all subscribers (all
)
Response
Example
We remove all users from the list with id #123
| curl -X DELETE --header "X-Ownpage-Client-Token:TOKEN" https://services.ownpage.fr/v1/newsletters/lists/123/subscribers/all
|