Org Add User
Organization
Org Add User
Endpoint for an organization admin to add a new user to their organization.
Args: user_data (UserCreate): The new user information including email, name, role, and org_name.
Returns: dict: A success message confirming the user was added to the organization.
Raises: HTTPException 404:
- If the organization database is not found.
- If the
org_namein user data doesn’t match the admin’s org. - If organization details are not initialized. HTTPException 409:
- If the user already exists globally.
- If the user is already a member of the organization. HTTPException 500:
- If any unexpected error occurs during the user addition process.
POST
Org Add User
Authorizations
JWT Authorization header using the Bearer scheme. Example: 'Authorization: Bearer {token}'
Body
application/json
Response
Successful Response
