Skip to main content

customized_error_page

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

Overview​

Namecustomized_error_page
TypeResource
Idokta.brands.customized_error_page

Fields​

The following fields are returned by SELECT queries:

Successfully retrieved the customized error page.

NameDatatypeDescription
contentSecurityPolicySettingobject
pageContentstringThe HTML for the page

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_customized_error_pageselectbrandId, subdomainRetrieves the customized error page. The customized error page appears in your live environment.
replace_customized_error_pagereplacebrandId, subdomainReplaces the customized error page. The customized error page appears in your live environment.
delete_customized_error_pagedeletebrandId, subdomainDeletes the customized error page. As a result, the default error page appears in your live environment.

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 customized error page. The customized error page appears in your live environment.

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

REPLACE examples​

Replaces the customized error page. The customized error page appears in your live environment.

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

DELETE examples​

Deletes the customized error page. As a result, the default error page appears in your live environment.

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