This command accepts an invitation to join an organization.
To retrieve a list of pending invitations for the authenticated user, use LIST INVITATIONS.
Arguments
invitation_id
Specifies the id of the invitation to accept.
Examples
Accept the first organization invite
This example shows that when accepting an incoming invitation from someone else's organization, the current session joins that organization and can access the objects granted to the user with the appropriate privileges:
<no-organization># LIST MY INVITATIONS;+--------------------------------------+------------+------------------------------------------+|ID|OrgName|InvitedBy|+======================================+============+==========================================+|bd5b2db3-2f36-49a9-8192-ab6e76fa9290|demo2|emailff7192cf-524e-44f5-ae14-17b71ed40ba||||a@deltastream.io|+--------------------------------------+------------+------------------------------------------+<no-organization># ACCEPT INVITATION bd5b2db3-2f36-49a9-8192-ab6e76fa9290;+------------+--------------------------------------+------------+------------------------------------------+|Type|Name|Command|Summary|+============+======================================+============+==========================================+|invitation|bd5b2db3-2f36-49a9-8192-ab6e76fa9290|UPDATE|invitationtojoinorganization|||||"ecdc3aa3-6b61-49b4-93b6-d855795a1552"|||||wasaccepted|+------------+--------------------------------------+------------+------------------------------------------+<no-db>/<no-store># LIST ORGANIZATIONS;+--------------------------------------+------------+-------------+-------------+--------------+--------------------+-------------------------------+|ID|Name|IsCurrent|IsDefault|Description|ProfileImageUri|CreatedAt|+======================================+============+=============+=============+==============+====================+===============================+|ecdc3aa3-6b61-49b4-93b6-d855795a1552|demo2|true|true|<null> |<null> |2024-05-0904:53:21+0000UTC|+--------------------------------------+------------+-------------+-------------+--------------+--------------------+-------------------------------+