> ## 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.

# Add users to a Legal Entity

> Adds the listed Users to the Legal Entity. Users that already belong to it are left unchanged and their other memberships are kept. Requires permission to manage users and to edit the legal_entity_uid field of Users. Returns the updated Legal Entity. This endpoint may change or be removed without prior notice.



## OpenAPI

````yaml /api-reference/openapi.yml post /v1/legal_entities/{uid}/users
openapi: 3.0.1
info:
  title: Siit Public API
  version: v0
servers:
  - url: https://api.siit.io
security: []
paths:
  /v1/legal_entities/{uid}/users:
    parameters:
      - name: uid
        in: path
        description: The UID of the Legal Entity
        required: true
        schema:
          type: string
    post:
      tags:
        - Unstable
        - Legal Entity
      summary: Add users to a Legal Entity
      description: >-
        Adds the listed Users to the Legal Entity. Users that already belong to
        it are left unchanged and their other memberships are kept. Requires
        permission to manage users and to edit the legal_entity_uid field of
        Users. Returns the updated Legal Entity. 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 add to the Legal Entity (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_legal_entity_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_legal_entity_object:
      type: object
      properties:
        result:
          $ref: '#/components/schemas/legal_entity'
    errors_object:
      type: object
      properties:
        error:
          type: string
        troubleshoot:
          type: string
    legal_entity:
      type: object
      properties:
        uid:
          type: string
          readOnly: true
          description: The UID of the Legal Entity
        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 Legal Entity name
  securitySchemes:
    bearer:
      type: http
      scheme: bearer

````