PUT https://api.actonsoftware.com/api/1/subscription/setcategories
Add/remove individual records from multiple subscription categories by their email address.
Customers wanting to access our API via our gateway in the EU can use this link:
PUT https://api-eu.actonsoftware.com/api/1/subscription/setcategories
Parameters
| Name | Parameter Type |
Allow Multiple |
Required/ Optional |
Data Type | Description |
|---|---|---|---|---|---|
| Authorization | Header | False | Required | String | Insert your generated access token. ("Bearer {access token}") |
| Body | False | Required | String | Specify the email address of the record. | |
| category | Body | True | Optional | String | Specify separate category parameters for each category for the record to be opted into. To opt the contact out of all categories, omit this parameter completely. |
Response
{
"status": "success",
"message": "Entry added for subscription categories : [Newsletter, Example]"
}
Code Examples
cURL
curl -X PUT https://api.actonsoftware.com/api/1/subscription/setcategories -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs" -H "Content-Type: application/x-www-form-urlencoded" -d 'email=john.doe%40act-on.com&category=Newsletter&category=Example'