Skip to main content

customization_preview

Creates, updates, deletes, gets or lists a customization_preview resource.

Overview​

Namecustomization_preview
TypeResource
Idokta.brands.customization_preview

Fields​

The following fields are returned by SELECT queries:

Successfully generated a preview of the email customization.

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.
bodystringThe email's HTML body
subjectstringThe email's subject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_customization_previewselectbrandId, templateName, customizationId, subdomainRetrieves a Preview of an Email Customization. All variable references are populated from the current user's context. For example, ${user.profile.firstName}.

<x-lifecycle class="ea"></x-lifecycle> If Custom languages for Okta Email Templates is disabled, requests for the preview of an additional language customization by ID return a 404 Not Found error response.

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
customizationIdstringThe ID of the email customization
subdomainstring(default: my-org)
templateNamestringThe name of the email template

SELECT examples​

Retrieves a Preview of an Email Customization. All variable references are populated from the current user's context. For example, $&#123;user.profile.firstName&#125;.

<x-lifecycle class="ea"></x-lifecycle> If Custom languages for Okta Email Templates is disabled, requests for the preview of an additional language customization by ID return a 404 Not Found error response.

SELECT
_links,
body,
subject
FROM okta.brands.customization_preview
WHERE brandId = '{{ brandId }}' -- required
AND templateName = '{{ templateName }}' -- required
AND customizationId = '{{ customizationId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;