Invites an existing external user to join an enterprise.
The existing user can not be part of another enterprise and must already have a Box account. Once invited, the user will receive an email and are prompted to accept the invitation within the Box web application.
This method requires the "Manage An Enterprise" scope enabled for the application, which can be enabled within the developer console.
This operation is performed by calling function createInvite
.
See the endpoint docs at API Reference.
client.getInvites().createInvite(new CreateInviteRequestBody(new CreateInviteRequestBodyEnterpriseField(currentUser.getEnterprise().getId()), new CreateInviteRequestBodyActionableByField.CreateInviteRequestBodyActionableByFieldBuilder().login(email).build()))
- requestBody
CreateInviteRequestBody
- Request body of createInvite method
- queryParams
CreateInviteQueryParams
- Query parameters of createInvite method
- headers
CreateInviteHeaders
- Headers of createInvite method
This function returns a value of type Invite
.
Returns a new invite object.
Returns the status of a user invite.
This operation is performed by calling function getInviteById
.
See the endpoint docs at API Reference.
client.getInvites().getInviteById(invitation.getId())
- inviteId
String
- The ID of an invite. Example: "213723"
- queryParams
GetInviteByIdQueryParams
- Query parameters of getInviteById method
- headers
GetInviteByIdHeaders
- Headers of getInviteById method
This function returns a value of type Invite
.
Returns an invite object