/organizations/{organization_id}/invitations/bulkCreate and send organization invitations in bulk
Creates and sends organization invitations in bulk for a specified organization. Provide 1–10 invitation objects, each with email_address and role; you can set a different role and inviter for each invitation. Invitations remain pending until accepted or revoked, and notify controls whether an invitation email is sent.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
An array of 1–10 organization invitation objects. Each object must include email_address and role.
A 400 is returned when the request is unsuccessful, a 403 when authorization is invalid, a 404 when a resource is not found, and a 422 when request parameters are invalid. The request must contain 1–10 invitation objects, each with email_address and role; the organization_id path parameter must identify an existing organization. If provided, inviter_user_id must identify an organization member with administrator privileges, and expires_in_days must be between 1 and 365.