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_previewselectsubdomainRetrieves 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
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 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 subdomain = '{{ subdomain }}' -- required
;