Accept an organization invitation
editAccept an organization invitation
editAccepts an organization invitation. Currently unavailable in self-hosted ECE.
Request
editPOST /api/v1/organizations/invitations/{invitation_token}/_accept
Path parameters
editName | Type | Required | Description |
---|---|---|---|
|
|
Y |
Organization invitation token |
Responses
edit-
200
-
Organization invitation accepted successfully
-
400
-
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
-
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
-
-
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
-
Organization not found. (code:
Request example
editcurl -XPOST https://{{hostname}}/api/v1/organizations/invitations/{invitation_token}/_accept \ -H "Authorization: ApiKey $ECE_API_KEY"