API Docs / Operations / Email - Configs / Update Email Config

Update Email Config

PUT /tenants/{tenant}/email-configs/{code}

Updates an existing email configuration. Supports updating provider settings (SmtpSettings), display name (FromName), and flags (IsDefault, IsShared). User must be the owner or the config must be shared.

Parameters

NameTypeDescription
tenant* path string

The Tenant.Code

The Tenant.Code

code* path string

Request Body*

{
  "fromEmail": "string",
  "fromName": "string",
  "isDefault": false,
  "isShared": false,
  "smtpSettings": {
    "host": "string",
    "port": 0,
    "encryption": "...",
    "requiresAuthentication": false,
    "username": "string"
  }
}

Responses

400 Bad Request
401 Unauthorized – Invalid or missing API key
404 Not Found