Add user to organizationAsk AIpost https://api.agent700.ai/api/organizations/add_userAdds an existing or new user to an organization. The caller must be an admin or billing owner in the target organization.Body ParamsUser addition data. Organization ID is required. Either user_id (for existing users) or user_email (for new or existing users) must be provided, but not both. Role defaults to "consumer" and must be one of: "consumer", "admin", "billing_owner". If user_email is provided and the user doesn't exist, a new user will be created with email-based password setup. Caller must be an admin or billing owner in the target organization.user_idstringExisting user ID (mutually exclusive with user_email)user_emailstringEmail for existing or new user (mutually exclusive with user_id)organization_idstringrequiredrolestringenumDefaults to consumerconsumerconsumeradminbilling_ownerAllowed:consumeradminbilling_ownerResponses 200Reactivated an existing membership 201User added to organization 400Validation error or already in organization 401Authentication required 403Caller not authorized for this organization 404Organization or user not found 500Failed to create or add userUpdated 2 months ago