Create and send an organization invitation

Create an invitation to join an organization. Supports two scenarios:

  1. Invite to existing organization: Provide ‘existingOrganizationId’ to invite user to an existing organization
  2. Create new organization: Provide ‘newOrganizationName’ (and optionally ‘newOrganizationDescription’) to create a new organization and invite the user to it

The DTO validates that exactly one of these approaches is used.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

Request

This endpoint expects an object.
objectRequired
OR
objectRequired

Response

Organization invitation created and sent successfully.
successboolean or null
messagestring or null
organizationIdstring or null

Errors