Invite users to teams in bulk
This endpoint sends invitations to multiple users to join specified teams in a single request. Each invitation includes the team ID, roles to assign, and the email address of the user to be invited. O
description: "This endpoint sends invitations to multiple users to join specified teams in a single request. Each invitation includes the team ID, roles to assign, and the email address of the user to be invited. Optionally specify a custom invitation URL and language code for the email template."
Invite users to teams in bulk
This endpoint sends invitations to multiple users to join specified teams in a single request. Each invitation includes the team ID, roles to assign, and the email address of the user to be invited. Optionally specify a custom invitation URL and language code for the email template.
For accessing the API a valid JWT jwt must be passed in all queries in the 'Authorization' header. The following syntax must be used in the 'Authorization' header. (Bearer xxx.yyy.zzz)
The bulk invite operation completed. Check the response for individual invitation results.
Unique identifier for the bulk operation.
Success message for the operation.
BULK_OPERATION_SUBMITTEDPossible values: There was a problem with input.
Login failed or token not valid.
Access denied due to insufficient permissions.
An unexpected error response.
POST /v2/teams/bulk/invite-user HTTP/1.1
Host: auth.<env>.citrusad.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 264
{
"inviteUsers": [
{
"emailToInvite": "invitee@example.com",
"inviteUrl": "https://campaign.citrusad.com/user/invite",
"languageCode": "EN_US",
"managerTeamId": "manager-team-123",
"roleIds": [
"ROLE_TYPES_SUPPLIER_FULL",
"ROLE_TYPES_RETAILER_REPORT_VIEW"
],
"teamId": "team-456"
}
]
}{
"bulkId": "text",
"message": "text",
"status": "BULK_OPERATION_SUBMITTED"
}
