コンテンツにスキップ

Update tenant email settings

PATCH
/api/admin/tenants/{tenantId}/email-settings
Code sample: Shell / cURL
curl --request PATCH \
--url https://auth.example.com/api/admin/tenants/example/email-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "strategy": "priority_failover", "providerOrder": [ "notifier-resend", "notifier-sendgrid" ] }'

Updates tenant email notifier provider order for priority failover routing.

tenantId
required
string

JSON request body.

Media type application/json
object
strategy
required
string
Allowed values: priority_failover
providerOrder
required
Array<string>
key
additional properties
Example
{
"strategy": "priority_failover",
"providerOrder": [
"notifier-resend",
"notifier-sendgrid"
]
}

Successful JSON response.

Media type application/json
object
tenantId
required
string
settings
required
object
strategy
required
string
Allowed values: priority_failover
providerOrder
required
Array<string>
key
additional properties
providers
required
Array<object>
object
id
string
name
string
description
string
category
string
configSource
string
configured
boolean
missingRequiredFields
Array<string>
defaultFrom
string
key
additional properties
key
additional properties
Example
{
"tenantId": "tenant_123",
"settings": {
"strategy": "priority_failover",
"providerOrder": [
"notifier-resend",
"notifier-sendgrid"
]
},
"providers": [
{
"id": "notifier-resend",
"name": "Resend",
"description": "Resend email provider",
"category": "notification",
"configSource": "tenant",
"configured": true,
"missingRequiredFields": [],
"defaultFrom": "[email protected]"
}
]
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}