Skip to main content

email_settings

Creates, updates, deletes, gets or lists an email_settings resource.

Overview

Nameemail_settings
TypeResource
Idokta.brands.email_settings

Fields

The following fields are returned by SELECT queries:

Successfully retrieved the email template's settings.

NameDatatypeDescription
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
recipientsstring

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_email_settingsselectsubdomainRetrieves an email template's settings
replace_email_settingsreplacesubdomain, data__recipientsReplaces an email template's settings

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)

SELECT examples

Retrieves an email template's settings

SELECT
_links,
recipients
FROM okta.brands.email_settings
WHERE subdomain = '{{ subdomain }}' -- required
;

REPLACE examples

Replaces an email template's settings

REPLACE okta.brands.email_settings
SET
data__recipients = '{{ recipients }}'
WHERE
subdomain = '{{ subdomain }}' --required
AND data__recipients = '{{ recipients }}' --required
RETURNING
recipients
;