> ## Documentation Index
> Fetch the complete documentation index at: https://developer.siit.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove users from a Department

> Removes the listed Users from the Department. Users that do not belong to it are left unchanged and their other memberships are kept. Requires permission to manage users and to edit the department_uid field of Users. Returns the updated Department. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml delete /v1/departments/{uid}/users
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/departments/{uid}/users:
    parameters:
      - name: uid
        in: path
        description: The UID of the Department
        required: true
        schema:
          type: string
    delete:
      tags:
        - Unstable
        - Department
      summary: Remove users from a Department
      description: >-
        Removes the listed Users from the Department. Users that do not belong
        to it are left unchanged and their other memberships are kept. Requires
        permission to manage users and to edit the department_uid field of
        Users. Returns the updated Department. This endpoint may change or be
        removed without prior notice.
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - user_uids
              properties:
                user_uids:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  maxItems: 100
                  description: >-
                    UIDs of the Users to remove from the Department (1 to 100).
                    Every UID must belong to an active User of the company.
        required: true
      responses:
        '200':
          description: Successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/updated_department_object'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
        '401':
          description: Unauthorized
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/errors_object'
      security:
        - bearer: []
components:
  schemas:
    updated_department_object:
      type: object
      properties:
        result:
          $ref: '#/components/schemas/department'
    errors_object:
      type: object
      properties:
        error:
          type: string
        troubleshoot:
          type: string
    department:
      type: object
      properties:
        uid:
          type: string
          readOnly: true
          description: The UID of the Department
        created_at:
          type: string
          format: date-time
          description: datetime formatted as ISO 8601 (e.g. "2020-12-15T03:34:13.000Z")
          readOnly: true
        updated_at:
          type: string
          format: date-time
          description: datetime formatted as ISO 8601 (e.g. "2020-12-15T03:34:13.000Z")
          readOnly: true
        value:
          type: string
          description: The Department name
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````