Skip to main content

captcha_settings

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

Overview

Namecaptcha_settings
TypeResource
Idokta.org.captcha_settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
_linksobjectLink relations for the CAPTCHA settings object
captchaIdstringThe unique key of the associated CAPTCHA instance
enabledPagesarrayAn array of pages that have CAPTCHA enabled

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_org_captcha_settingsselectsubdomainRetrieves the CAPTCHA settings object for your organization
> Note: If the current organization hasn't configured CAPTCHA Settings, the request returns an empty object.
replaces_org_captcha_settingsreplacesubdomainReplaces the CAPTCHA settings object for your organization
> Note: You can disable CAPTCHA for your organization by setting captchaId and enabledPages to null.
delete_org_captcha_settingsdeletesubdomainDeletes the CAPTCHA settings object for your organization

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 CAPTCHA settings object for your organization
> Note: If the current organization hasn't configured CAPTCHA Settings, the request returns an empty object.

SELECT
_links,
captchaId,
enabledPages
FROM okta.org.captcha_settings
WHERE subdomain = '{{ subdomain }}' -- required
;

REPLACE examples

Replaces the CAPTCHA settings object for your organization
> Note: You can disable CAPTCHA for your organization by setting captchaId and enabledPages to null.

REPLACE okta.org.captcha_settings
SET
data__captchaId = '{{ captchaId }}',
data__enabledPages = '{{ enabledPages }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
_links,
captchaId,
enabledPages
;

DELETE examples

Deletes the CAPTCHA settings object for your organization

DELETE FROM okta.org.captcha_settings
WHERE subdomain = '{{ subdomain }}' --required
;