Remove a user from a department.
DELETEhttps://api.aitronos.com/v1/organizations/{organization_id}/departments/{department_id}/members/{user_id}
Removes a user from the specified department. The user remains a member of the organization but is no longer associated with this department.
organization_id string required
The unique identifier of the organization (format: org_*).
department_id string required
The unique identifier of the department (format: dept_*).
user_id string required
The unique identifier of the user to remove (format: usr_*).
No content. Returns a 204 No Content status code on success.
cURL
- Bash
- Python
- Python
- JavaScript
curl -X DELETE https://api.aitronos.com/v1/organizations/org_xyz789/departments/dept_abc123/members/usr_def456 \
-H "Authorization: Bearer $ACCESS_TOKEN"