{

Creating an unsubscription

Create an unsubscription

POST https://api.cmtelecom.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 { "EmailAddress": "john.doe@cm.com" }
X-CM-PRODUCTTOKEN Header Your product token True Guid C24A5029-37DD-4161-9728-F80D8639588E

Responses

Http status Description Example
201 Unsubscription created { "ID": "db550a9c-f47c-49ff-98b3-eac43325bbb9", "AccountID": "a65b6ba1-7b13-4cff-aaf6-c736c977c1d4", "EmailAddress": "john.doe@cm.com", "UnsubscriptionType": 1, "CreatedOn": "2017-08-09T13:25:14.198388+02:00", "ModifiedOn": "2017-08-09T13:25:14.198388+02:00" }
400 Bad request

Try it out