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 (ALL_USERS, ADMINS_ONLY, NO_USERS)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_email_settingsselectbrandId, templateName, subdomainRetrieves an email template's settings
replace_email_settingsreplacebrandId, templateName, subdomain, 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
brandIdstringThe ID of the brand
subdomainstring(default: my-org)
templateNamestringThe name of the email template

SELECT examples​

Retrieves an email template's settings

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

REPLACE examples​

Replaces an email template's settings

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