Skip to main content

contacts

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

Overview

Namecontacts
TypeResource
Idokta.org.contacts

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
_linksobjectSpecifies link relations (see Web Linking) available for the contact type user object using the JSON Hypertext Application Language specification
userIdstringContact user ID

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_org_contact_userselectsubdomainRetrieves the ID and the user resource associated with the specified contact type
replace_org_contact_userreplacesubdomainReplaces the user associated with the specified contact type

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 ID and the user resource associated with the specified contact type

SELECT
_links,
userId
FROM okta.org.contacts
WHERE subdomain = '{{ subdomain }}' -- required
;

REPLACE examples

Replaces the user associated with the specified contact type

REPLACE okta.org.contacts
SET
data__userId = '{{ userId }}'
WHERE
subdomain = '{{ subdomain }}' --required
RETURNING
_links,
userId
;