PUT
/
admin
/
setting
/
set-mail-transport-config
shell
curl --request PUT \
  --url https://app.teable.ai/api/admin/setting/set-mail-transport-config \
  --header 'Authorization: Bearer REPLACE_BEARER_TOKEN' \
  --header 'content-type: application/json' \
  --data '{"name":"notifyMailTransportConfig","transportConfig":{"senderName":"string","sender":"string","host":"string","port":0,"secure":true,"auth":{"user":"string","pass":"string"}}}'
{
  "name": "notifyMailTransportConfig",
  "transportConfig": {
    "senderName": "<string>",
    "sender": "<string>",
    "host": "<string>",
    "port": 123,
    "secure": true,
    "auth": {
      "user": "<string>",
      "pass": "<string>"
    }
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

200 - application/json

Set mail transporter successfully.

The response is of type object.