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:
- GraphQL
- cURL
mutation UpdateEmailConfig($input: UpdateEmailConfigInput!) {
updateEmailConfig(input: $input) {
id
fromName
createdAt
createdBy
dailyReportTime
defaultRecipients
}
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation UpdateEmailConfig($input: UpdateEmailConfigInput!) {\n updateEmailConfig(input: $input) {\n id\n fromName\n createdAt\n createdBy\n dailyReportTime\n defaultRecipients\n }\n}",
"variables": {
"input": {}
}
}
EOF
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.