Save event email settings for one context and mode
PUT/organizations/:organizationId/event-email-settings/:context/:mode
Creates or replaces event email settings for the given context and mode, using the same upsert logic as POST /{context}/{mode} — both routes invoke the identical service operation. Both context and mode are matched against a case-sensitive route pattern — other casings return 404 at the routing layer before this operation executes. The same request body constraints apply: typeSettings should cover all six event types (not enforced by the server); enabled types require non-blank template.subject and template.bodyHtml. recipientPreferences are stored at context scope and affect both modes. Prefer POST for first-time creation; use this method when a PUT is semantically more appropriate for your client. Returns the full updated settings record.
Request
Responses
- 200
- 400
- 401
- 403
- 500
The full event email settings record after the create/replace, including resolved recipient preferences, ccEmail, logoUrl, logoWidth, and per-type template settings.
A typeSettings entry has enabled: true but is missing template.subject or template.bodyHtml.
Unauthorized - Authentication required
Forbidden - User does not have required permissions
Internal Server Error