Use this API to set preference categories to be used in workflow or to show on user preference page.
⚠️ This API call will override existing categories with whatever is passed in the request body. Recommended approach is to first fetch the current categories using GET method, modify the response as needed, and then send it back in the request body.Documentation Index
Fetch the complete documentation index at: https://docs.suprsend.com/llms.txt
Use this file to discover all available pages before exploring further.
Note:
Changes will only be pushed if "validation_result":{"is_valid":true} in the response. General reasons for validation failure are:
You can get Service Token from SuprSend dashboard -> Account Settings -> Service Tokens section.
Workspace slug (staging, production, etc.)
Whether to commit changes immediately. Set to true to make changes live, false to save as draft.
Optional commit message describing the changes made. Required when commit=true.
Array of root preference categories. Include all three root categories (system, transactional, promotional) even if empty.
Successfully created/updated preference category
JSON schema reference for preference category structure
"https://schema.suprsend.com/preference_category/v1/schema.json"
Array of root preference categories
Current status of the preference category
draft, active "draft"
Version number of the preference category
3
Commit message describing the changes that were made
null
Timestamp when the changes were committed
null
Result of validating the preference category