Invite user to organization
Start from the script setup block, then add the snippet code below.
# ... script setup ...
invitation = api_post( f"/v1/organization/{ORGANIZATION_ID}/invitations", {"email": "new.user@example.com", "roleId": "your-role-uuid"},)print(json.dumps(invitation, indent=2))