Update email consent preferences
Updates per-category consent (granted/revoked). Accepts either an HTML form POST (application/x-www-form-urlencoded) or application/json, with category_<name> fields (truthy = subscribed). Revoking marketing also writes a suppression; re-subscribing does NOT clear bounce/complaint suppressions. Returns an HTML “saved” page.
Auth: none (signed token in path).
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”token
required
string
HMAC-signed compliance token identifying (projectId, emailHash).
Request Body
Section titled “Request Body”Per-category checkbox state. Form-encoded (browser form) or JSON. Each category_<name> key that is truthy marks that category subscribed.
object
key
additional properties
any
Example
{ "category_marketing": "1"}object
key
additional properties
any
Example
{ "category_marketing": true, "category_transactional": true}Responses
Section titled “Responses”Preferences saved (HTML page).
Media typetext/html
string
Missing/expired/invalid token or service misconfigured. HTML error page.
Media typetext/html
string