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_pageselectsubdomainRetrieves 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_pagereplacesubdomainReplaces 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_pagedeletesubdomainDeletes 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
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 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 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
data__pageContent = '{{ pageContent }}',
data__contentSecurityPolicySetting = '{{ contentSecurityPolicySetting }}'
WHERE
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 subdomain = '{{ subdomain }}' --required
;