API referenceSections

Set the outgoing mail server; an empty password keeps the stored one

Generated from the OpenAPI contract. Sessions send the CSRF header on writes; API keys use a Bearer token. Authentication

PUT /api/v1/tenants/{tid}/smtp

Set the outgoing mail server; an empty password keeps the stored one

Authentication: session cookie __Host-panel_session (contract default; see Authentication).

Parameters

NameInTypeRequiredDescription
tidpathstringrequired
X-CSRF-Tokenheaderstringoptional

Required on unsafe requests authenticated by session cookie; API keys do not use it.

Request body

required

Content type: application/json

object
  • no other properties
  • host string required
  • port integer required
  • security string required
    Allowed values: "starttls" "tls" "none"
  • username string optional
  • password string optional write-only
  • clear_password boolean optional
  • from string required
  • from_name string optional
Example
{
  "host": "string",
  "port": 0,
  "security": "starttls",
  "username": "string",
  "password": "string",
  "clear_password": true,
  "from": "string",
  "from_name": "string"
}

Responses

200 Saved

Content type: application/json

  • host string required
  • port integer required
  • security string required
    Allowed values: "starttls" "tls" "none" ""
  • username string required
  • from string required
  • from_name string required
  • password_set boolean required

    A password is stored; it is never returned

  • configured boolean required
Example
{
  "host": "string",
  "port": 0,
  "security": "starttls",
  "username": "string",
  "from": "string",
  "from_name": "string",
  "password_set": true,
  "configured": true
}

default Error

Content type: application/json

  • code string required
  • message string required
  • details_redacted boolean required
  • correlation_id string required
  • retryable boolean required