Skip to content

Latest commit

 

History

History
76 lines (47 loc) · 1.94 KB

invites.md

File metadata and controls

76 lines (47 loc) · 1.94 KB

InvitesManager

Create user invite

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()))

Arguments

  • requestBody CreateInviteRequestBody
    • Request body of createInvite method
  • queryParams CreateInviteQueryParams
    • Query parameters of createInvite method
  • headers CreateInviteHeaders
    • Headers of createInvite method

Returns

This function returns a value of type Invite.

Returns a new invite object.

Get user invite status

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())

Arguments

  • inviteId String
    • The ID of an invite. Example: "213723"
  • queryParams GetInviteByIdQueryParams
    • Query parameters of getInviteById method
  • headers GetInviteByIdHeaders
    • Headers of getInviteById method

Returns

This function returns a value of type Invite.

Returns an invite object