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

# Add or update an additional office for an agent

> Upsert. Body is optional — omitting it (or `displayInDirectory`) creates the affiliation with `displayInDirectory: true`, matching the column default. 422 when `office_id` is the agent’s own `primaryOfficeId`.



## OpenAPI

````yaml /api-reference/v2/openapi.json put /agents/{agent_id}/additional-offices/{office_id}
openapi: 3.0.3
info:
  title: Windermere Atlas API
  description: V2 data API — Project Atlas
  version: 2.0.0
servers:
  - url: https://api.windermere.com/v2/api
security:
  - bearerAuth: []
tags:
  - name: agents
    description: Agent profile read endpoints
  - name: offices
    description: Office read endpoints
  - name: teams
    description: Team read endpoints
  - name: listings
    description: Listings (RESO Data Dictionary Property records; active + sold)
  - name: reso
    description: >-
      RESO Web API Core (OData 4.0) facade over listings — Property, Media,
      OpenHouse, Lookup
  - name: brokerages
    description: Brokerage read endpoints
  - name: regions
    description: Region read endpoints
  - name: dnc
    description: Do-not-contact list read endpoints
  - name: directory
    description: Denormalized public directory (partner-safe)
  - name: webhooks
    description: Partner webhook subscriptions (partner-only)
  - name: health
    description: Liveness and readiness probes
paths:
  /agents/{agent_id}/additional-offices/{office_id}:
    put:
      tags:
        - agents
      summary: Add or update an additional office for an agent
      description: >-
        Upsert. Body is optional — omitting it (or `displayInDirectory`) creates
        the affiliation with `displayInDirectory: true`, matching the column
        default. 422 when `office_id` is the agent’s own `primaryOfficeId`.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: agent_id
          required: true
        - schema:
            type: string
            format: uuid
          in: path
          name: office_id
          required: true
        - schema:
            type: string
          in: header
          name: if-match
          required: false
          description: >-
            Optional. When provided, the server enforces optimistic concurrency:
            the request is rejected with 412 Precondition Failed if the resource
            was modified since this ETag was issued. Omit for last-write-wins
            behavior.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                displayInDirectory:
                  type: boolean
                  default: true
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  agentId:
                    type: string
                    format: uuid
                  officeId:
                    type: string
                    format: uuid
                  displayInDirectory:
                    type: boolean
                required:
                  - agentId
                  - officeId
                  - displayInDirectory
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Microsoft Entra ID JWT (staff) or OAuth2 client-credentials token issued
        by APIM (partners).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.