invites
Creates, updates, deletes, gets or lists a invites resource.
Overview
| Name | invites |
| Type | Resource |
| Id | openai.invites.invites |
Fields
| Name | Datatype | Description |
|---|---|---|
id | string | The identifier, which can be referenced in API endpoints |
accepted_at | integer | The Unix timestamp (in seconds) of when the invite was accepted. |
email | string | The email address of the individual to whom the invite was sent |
expires_at | integer | The Unix timestamp (in seconds) of when the invite expires. |
invited_at | integer | The Unix timestamp (in seconds) of when the invite was sent. |
object | string | The object type, which is always organization.invite |
role | string | owner or reader |
status | string | accepted,expired, or pending |
Methods
| Name | Accessible by | Required Params | Description |
|---|---|---|---|
list_invites | SELECT | | |
retrieve_invite | SELECT | invite_id | |
delete_invite | DELETE | invite_id |
SELECT examples
SELECT
id,
accepted_at,
email,
expires_at,
invited_at,
object,
role,
status
FROM openai.invites.invites
;
DELETE example
Deletes the specified invites resource.
/*+ delete */
DELETE FROM openai.invites.invites
WHERE invite_id = '{{ invite_id }}';