Skip to main content

settings

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

Overview

Namesettings
TypeResource
Idokta.org.settings

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringOrg ID
_linksobjectSpecifies link relations (see Web Linking) available for the org using the JSON Hypertext Application Language specification
address1stringPrimary address of the organization associated with the org
address2stringSecondary address of the organization associated with the org
citystringCity of the organization associated with the org
companyNamestringName of org
countrystringCounty of the organization associated with the org
createdstring (date-time)When org was created
endUserSupportHelpURLstringSupport link of org
expiresAtstring (date-time)Expiration of org
lastUpdatedstring (date-time)When org was last updated
phoneNumberstringPhone number of the organization associated with the org
postalCodestringPostal code of the organization associated with the org
statestringState of the organization associated with the org
statusstringStatus of org
subdomainstringSubdomain of org
supportPhoneNumberstringSupport help phone of the organization associated with the org
websitestringWebsite of the organization associated with the org

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_org_settingsselectsubdomainRetrieves the Org General Settings
update_org_settingsupdatesubdomainUpdates partial Org General Settings
replace_org_settingsreplacesubdomainReplaces the Org General Settings for your Okta org

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 Org General Settings

SELECT
id,
_links,
address1,
address2,
city,
companyName,
country,
created,
endUserSupportHelpURL,
expiresAt,
lastUpdated,
phoneNumber,
postalCode,
state,
status,
subdomain,
supportPhoneNumber,
website
FROM okta.org.settings
WHERE subdomain = '{{ subdomain }}' -- required
;

UPDATE examples

Updates partial Org General Settings

UPDATE okta.org.settings
SET
data__address1 = '{{ address1 }}',
data__address2 = '{{ address2 }}',
data__city = '{{ city }}',
data__companyName = '{{ companyName }}',
data__country = '{{ country }}',
data__endUserSupportHelpURL = '{{ endUserSupportHelpURL }}',
data__phoneNumber = '{{ phoneNumber }}',
data__postalCode = '{{ postalCode }}',
data__state = '{{ state }}',
data__supportPhoneNumber = '{{ supportPhoneNumber }}',
data__website = '{{ website }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
id,
_links,
address1,
address2,
city,
companyName,
country,
created,
endUserSupportHelpURL,
expiresAt,
lastUpdated,
phoneNumber,
postalCode,
state,
status,
subdomain,
supportPhoneNumber,
website
;

REPLACE examples

Replaces the Org General Settings for your Okta org

REPLACE okta.org.settings
SET
data__address1 = '{{ address1 }}',
data__address2 = '{{ address2 }}',
data__city = '{{ city }}',
data__companyName = '{{ companyName }}',
data__country = '{{ country }}',
data__endUserSupportHelpURL = '{{ endUserSupportHelpURL }}',
data__phoneNumber = '{{ phoneNumber }}',
data__postalCode = '{{ postalCode }}',
data__state = '{{ state }}',
data__supportPhoneNumber = '{{ supportPhoneNumber }}',
data__website = '{{ website }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
id,
_links,
address1,
address2,
city,
companyName,
country,
created,
endUserSupportHelpURL,
expiresAt,
lastUpdated,
phoneNumber,
postalCode,
state,
status,
subdomain,
supportPhoneNumber,
website
;