Creating an Unsubscription
Creating an unsubscription
Create an unsubscription
POST https://api.cm.com/bulkemail/v1.0/accounts/{accountID}/unsubscriptions
POST Parameters
Name | In | Description | Required | Type | Example |
---|---|---|---|---|---|
AccountID | Path | The account guid | True | Guid | A8C062E4-ECFD-48D0-89B1-A37D2622B7A9 |
Body | Body | The from address to create | True | Json object | See example request |
X-CM-PRODUCTTOKEN | Header | Your product token | True | Guid | C24A5029-37DD-4161-9728-F80D8639588E |
{
"EmailAddress": "[email protected]"
}
Responses
Http status | Description |
---|---|
201 | Unsubscription created |
400 | Bad request |
{
"ID": "db550a9c-f47c-49ff-98b3-eac43325bbb9",
"AccountID": "a65b6ba1-7b13-4cff-aaf6-c736c977c1d4",
"EmailAddress": "[email protected]",
"UnsubscriptionType": 1,
"CreatedOn": "2017-08-09T13:25:14.198",
"CreatedOnUtc": "2017-08-09T12:25:14.198Z",
"ModifiedOn": "2017-08-09T13:25:14.198",
"ModifiedOnUtc": "2017-08-09T12:25:14.198Z"
}
Updated 8 months ago