Set Multiple Subscriptions by Email

PUT https://restapi.actonsoftware.com/api/1/subscription/setcategories

Add/remove individual records from multiple subscription category by email address.

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization Header False Required String Insert your generated access token.
("Bearer {access token}")
email 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

cURLPython

curl -X PUT https://restapi.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'

 

Coming Soon