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

# Set/update the caller's own external partner id on an office

> Upserts the caller's own `{ partnerName, partnerId }` entry into the office's `externalPartnerIds`, merging (never replacing the whole array). Partner-only: the partner name is derived from the caller's OAuth token (`azp` → `partner_clients.partnerName`), so the body is just `{ partnerId }`. Staff manage partner ids via `PATCH /offices/{id}`. The response contains only the entries the caller may see.



## OpenAPI

````yaml /api-reference/v2/openapi.json post /offices/{id}/external-partner-ids
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:
  /offices/{id}/external-partner-ids:
    post:
      tags:
        - offices
      summary: Set/update the caller's own external partner id on an office
      description: >-
        Upserts the caller's own `{ partnerName, partnerId }` entry into the
        office's `externalPartnerIds`, merging (never replacing the whole
        array). Partner-only: the partner name is derived from the caller's
        OAuth token (`azp` → `partner_clients.partnerName`), so the body is just
        `{ partnerId }`. Staff manage partner ids via `PATCH /offices/{id}`. The
        response contains only the entries the caller may see.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: id
          required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                partnerId:
                  type: string
                  minLength: 1
              required:
                - partnerId
              additionalProperties: false
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  externalPartnerIds:
                    type: array
                    items:
                      type: object
                      properties:
                        partnerName:
                          type: string
                        partnerId:
                          type: string
                      required:
                        - partnerName
                        - partnerId
                      additionalProperties: false
                required:
                  - externalPartnerIds
                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.