Create or change an unsubscribe group
post/mail/groups
Create or change an unsubscribe group. The group is the consent purpose email., so the preference page and one-click unsubscribe already honour it.
Before you call
- Credential
Authorization: Bearer $KEY- Scope
campaigns:write- Graphql
Mutation.campaignsMailGroupSave- Sdk
mail.groups.save- Cli
mail group-save
Request bodyapplication/json, required
- idstringrequiredLower-case letters, digits, dashes; the consent purpose is email. At most 40 characters.
- namestringrequiredAt most 80 characters.
- descriptionstringAt most 300 characters.
- kindstringmarketing needs the person's granted consent; service (receipts, security) does not, but honours a full unsubscribe One of: service, marketing.
- isDefaultboolean
Responses
- 200application/jsonSuccess
- 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring