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 (ACTIVE, INACTIVE)
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
subdomainstring(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
address1 = '{{ address1 }}',
address2 = '{{ address2 }}',
city = '{{ city }}',
companyName = '{{ companyName }}',
country = '{{ country }}',
endUserSupportHelpURL = '{{ endUserSupportHelpURL }}',
phoneNumber = '{{ phoneNumber }}',
postalCode = '{{ postalCode }}',
state = '{{ state }}',
supportPhoneNumber = '{{ supportPhoneNumber }}',
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
address1 = '{{ address1 }}',
address2 = '{{ address2 }}',
city = '{{ city }}',
companyName = '{{ companyName }}',
country = '{{ country }}',
endUserSupportHelpURL = '{{ endUserSupportHelpURL }}',
phoneNumber = '{{ phoneNumber }}',
postalCode = '{{ postalCode }}',
state = '{{ state }}',
supportPhoneNumber = '{{ supportPhoneNumber }}',
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;