> ## 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 Office Location

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



## OpenAPI

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

````