Skip to main content

ui_schemas

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

Overview

Nameui_schemas
TypeResource
Idokta.meta.ui_schemas

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringUnique identifier for the UI Schema
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
createdstring (date-time)Timestamp when the UI Schema was created (ISO 86001)
lastUpdatedstring (date-time)Timestamp when the UI Schema was last modified (ISO 86001)
uiSchemaobjectProperties of the UI schema

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_uischemasselectsubdomainLists all UI Schemas in your org
get_uischemaselectsubdomainRetrieves a UI Schema by id
create_uischemainsertsubdomainCreates an input for an enrollment form
replace_uischemasreplacesubdomainReplaces a UI Schema by id
delete_uischemasdeletesubdomainDeletes a UI Schema by id

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

Lists all UI Schemas in your org

SELECT
id,
_links,
created,
lastUpdated,
uiSchema
FROM okta.meta.ui_schemas
WHERE subdomain = '{{ subdomain }}' -- required
;

INSERT examples

Creates an input for an enrollment form

INSERT INTO okta.meta.ui_schemas (
data__uiSchema,
subdomain
)
SELECT
'{{ uiSchema }}',
'{{ subdomain }}'
RETURNING
id,
_links,
created,
lastUpdated,
uiSchema
;

REPLACE examples

Replaces a UI Schema by id

REPLACE okta.meta.ui_schemas
SET
data__uiSchema = '{{ uiSchema }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
id,
_links,
created,
lastUpdated,
uiSchema
;

DELETE examples

Deletes a UI Schema by id

DELETE FROM okta.meta.ui_schemas
WHERE subdomain = '{{ subdomain }}' --required
;