563848e0ecc0
Save event email settings for one context and mode
Creates or replaces event email settings for the given context and mode (upsert — if no record exists it is created, if one exists it is fully replaced). 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 request body should include a typeSettings array covering all six event-type values (initiated, approved, denied, cancelled, psvReady, inProgress), though this is not enforced by the server; any type with enabled: true must supply a non-blank template.subject and template.bodyHtml, otherwise the server returns 400. recipientPreferences is persisted at the context level and is shared across both modes for that context — changing it here also affects the other mode. Returns the full updated settings record. For updates only, PUT /{context}/{mode} is available and invokes this same upsert logic.
Path parameters
Context (practitioner or facility)
Mode (credentialing or recredentialing)
Organization identifier that scopes this request to a specific organization's event email settings. Path segment; opaque string, no enforced format.
Headers
Tenant identifier of the requesting caller. Required on every request; opaque string, no enforced format.
Request body
Response
The full event email settings record after the create/replace, including resolved recipient preferences, ccEmail, logoUrl, logoWidth, and per-type template settings.