Accept an organization invitation

edit

Accepts an organization invitation. Currently unavailable in self-hosted ECE.

Request

edit

POST /api/v1/organizations/invitations/{invitation_token}/_accept

Path parameters

edit
Name Type Required Description

invitation_token

string

Y

Organization invitation token

Responses

edit
200

(EmptyResponse)

Organization invitation accepted successfully

400

(BasicFailedReply)

User already belongs to organization. (code: organization.user_organization_already_belongs)

Headers

x-cloud-error-codes (string; allowed values: [organization.user_organization_already_belongs])
The error codes associated with the response
403

(BasicFailedReply)

The current user authentication is not valid. (code: root.invalid_authentication)

Headers

x-cloud-error-codes (string; allowed values: [root.invalid_authentication])
The error codes associated with the response
404

(BasicFailedReply)

  • Organization not found. (code: organization.not_found)
  • User not found. (code: user.not_found)
  • Invitation not found. (code: organization.invitation_not_found)

Headers

x-cloud-error-codes (string; allowed values: [organization.not_found, user.not_found, organization.invitation_not_found])
The error codes associated with the response

Request example

edit
curl -XPOST https://{{hostname}}/api/v1/organizations/invitations/{invitation_token}/_accept \
-H "Authorization: ApiKey $ECE_API_KEY"