Department
Department endpoints allow you to manage departments within an organization. A department is associated with users, surveys, and other related resources.
Key functionalities:
- Create Departments: Define a new department within an existing organization.
- Retrieve Departments: Fetch details or minimal info about departments.
- Update Departments: Modify department details, including its logo and default email.
- Manage Department Users: Add or remove users from a department, controlling their roles and permissions.
- Manage Department API Access: Retrieve or generate API tokens for department-level integrations.
📄️ List departments for the current user
Retrieve a list of departments associated with the currently logged-in user.
📄️ List departments for a specific user
Retrieve a list of departments associated with a specific user by their user ID.
📄️ Get department by ID
Fetch detailed information about a department, including its logo URL, surveys, and default email settings.
📄️ List users in a department
Retrieve all users associated with a specific department, including their roles.
📄️ Add users to a department
Add multiple users to a department, assigning them a specified role. If a user doesn't exist, they are created and an activation email is sent.
📄️ Remove a user from a department
Remove a user from a department, revoking their access and role assignments.