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
get_uischemaselectid, subdomainRetrieves a UI Schema by id
list_uischemasselectsubdomainLists all UI Schemas in your org
create_uischemainsertsubdomainCreates an input for an enrollment form
replace_uischemasreplaceid, subdomainReplaces a UI Schema by id
delete_uischemasdeleteid, subdomainDeletes 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
idstringThe unique ID of the UI Schema
subdomainstring(default: my-org)

SELECT examples​

Retrieves a UI Schema by id

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

INSERT examples​

Creates an input for an enrollment form

INSERT INTO okta.meta.ui_schemas (
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
uiSchema = '{{ uiSchema }}'
WHERE
id = '{{ id }}' --required
AND subdomain = '{{ subdomain }}' --required
RETURNING
id,
_links,
created,
lastUpdated,
uiSchema;

DELETE examples​

Deletes a UI Schema by id

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