Create and send an organization invitation
Create an invitation to join an organization. Supports two scenarios:
- Invite to existing organization: Provide ‘existingOrganizationId’ to invite user to an existing organization
- 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
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
This endpoint expects an object.
OR
Response
Organization invitation created and sent successfully.
success
message
organizationId