Skip to main content

preview_error_page

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

Overview​

Namepreview_error_page
TypeResource
Idokta.brands.preview_error_page

Fields​

The following fields are returned by SELECT queries:

Successfully retrieved the preview error page.

NameDatatypeDescription
contentSecurityPolicySettingobject
pageContentstringThe HTML for the page

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_preview_error_pageselectbrandId, subdomainRetrieves the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview.
replace_preview_error_pagereplacebrandId, subdomainReplaces the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview.
delete_preview_error_pagedeletebrandId, subdomainDeletes the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview.

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)

SELECT examples​

Retrieves the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview.

SELECT
contentSecurityPolicySetting,
pageContent
FROM okta.brands.preview_error_page
WHERE brandId = '{{ brandId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

REPLACE examples​

Replaces the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview.

REPLACE okta.brands.preview_error_page
SET
pageContent = '{{ pageContent }}',
contentSecurityPolicySetting = '{{ contentSecurityPolicySetting }}'
WHERE
brandId = '{{ brandId }}' --required
AND subdomain = '{{ subdomain }}' --required
RETURNING
contentSecurityPolicySetting,
pageContent;

DELETE examples​

Deletes the preview error page. The preview error page contains unpublished changes and isn't shown in your live environment. Preview it at ${yourOktaDomain}/error/preview.

DELETE FROM okta.brands.preview_error_page
WHERE brandId = '{{ brandId }}' --required
AND subdomain = '{{ subdomain }}' --required
;