Skip to main content

updateEmailConfig

Requires at least one of the permissions settings:email:update or settings:tenant:update.

Changes the organization's email configuration. Whenever the provider, host or port changes, the new connection settings are checked again. Requires permission to update email settings.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateEmailConfig($input: UpdateEmailConfigInput!) {
updateEmailConfig(input: $input) {
id
fromName
createdAt
createdBy
dailyReportTime
defaultRecipients
}
}

Variables:

{
"input": {}
}

Response:

{
"data": {
"updateEmailConfig": {
"id": "string",
"fromName": "string",
"createdAt": "2025-01-15T00:00:00Z",
"createdBy": "string",
"dailyReportTime": "string",
"defaultRecipients": [
"string"
]
}
}
}
updateEmailConfig(
input: UpdateEmailConfigInput!
): EmailConfig!

Arguments​

updateEmailConfig.input ● UpdateEmailConfigInput! non-null input​

The fields to change.

Type​

EmailConfig object​

The organization's email settings. Secrets are never returned.