Update an email preference
PUT/auth/email/opt-out/:slug
Turns a single email category on or off.
If the slug belongs to a parent category, every child notification grouped under it is updated to the same value. If the slug belongs to a child notification, only that notification changes.
You cannot opt out of a required category. Updating one returns 400 with the message Cannot update a required email category, whether you send opted_in: true or false.
Request
Responses
- 200
- 400
- 401
- 404
- 500
Success
The category is required and cannot be changed.
Unauthorized
Email category not found
Internal Server Error
Was this page helpful?