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_userselectcontactType, subdomainRetrieves the ID and the user resource associated with the specified contact type
replace_org_contact_userreplacecontactType, subdomainReplaces 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
contactTypestring
subdomainstring(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 contactType = '{{ contactType }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

REPLACE examples​

Replaces the user associated with the specified contact type

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