Sends an invitation to a user to join the organization. If the user is already a member, updates their role to the specified value. If the user has a pending invite, returns the current status without changes.
Factory API key or JWT token for authentication
Response for status 200
Invited email address
Assigned role
user, manager, owner Result of the invite operation
invited, already_member, role_updated, already_invited, error Error message if status is error