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

# Deactivate a brokerage (cascades to offices + primary-office agents)

> Soft-deactivates the brokerage (sets `deactivatedAt`) and cascades the deactivation down its subtree — every active office and every active agent whose primary office is one of them. Returns the updated brokerage plus a summary of the ids the cascade touched. Returns 409 `BROKERAGE_ALREADY_DEACTIVATED` if it is already deactivated. Honors `If-Match`.



## OpenAPI

````yaml /api-reference/v2/openapi.json post /brokerages/{id}/deactivate
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:
  /brokerages/{id}/deactivate:
    post:
      tags:
        - brokerages
      summary: Deactivate a brokerage (cascades to offices + primary-office agents)
      description: >-
        Soft-deactivates the brokerage (sets `deactivatedAt`) and cascades the
        deactivation down its subtree — every active office and every active
        agent whose primary office is one of them. Returns the updated brokerage
        plus a summary of the ids the cascade touched. Returns 409
        `BROKERAGE_ALREADY_DEACTIVATED` if it is already deactivated. Honors
        `If-Match`.
      parameters:
        - schema:
            type: string
            format: uuid
          in: path
          name: 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.
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                type: object
                properties:
                  brokerage:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      legalName:
                        type: string
                      commonName:
                        type: string
                        nullable: true
                      code:
                        type: string
                        minLength: 1
                        nullable: true
                      owners:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                              minLength: 1
                            email:
                              type: string
                              format: email
                              nullable: true
                            ownershipPercent:
                              type: number
                              minimum: 0
                              maximum: 100
                              nullable: true
                            agentId:
                              type: string
                              format: uuid
                              nullable: true
                          required:
                            - name
                          additionalProperties: false
                      deactivatedAt:
                        type: string
                        format: date-time
                        nullable: true
                      includeInApi:
                        type: boolean
                      isSystem:
                        type: boolean
                      createdAt:
                        type: string
                        format: date-time
                      updatedAt:
                        type: string
                        format: date-time
                      regions:
                        type: array
                        items:
                          type: object
                          properties:
                            id:
                              type: string
                              format: uuid
                            name:
                              type: string
                          required:
                            - id
                            - name
                          additionalProperties: false
                    required:
                      - id
                      - legalName
                      - commonName
                      - code
                      - owners
                      - deactivatedAt
                      - includeInApi
                      - isSystem
                      - createdAt
                      - updatedAt
                      - regions
                    additionalProperties: false
                  summary:
                    type: object
                    properties:
                      brokerage:
                        type: string
                        format: uuid
                      offices:
                        type: array
                        items:
                          type: string
                          format: uuid
                      agents:
                        type: array
                        items:
                          type: string
                          format: uuid
                      counts:
                        type: object
                        properties:
                          offices:
                            type: integer
                          agents:
                            type: integer
                        required:
                          - offices
                          - agents
                        additionalProperties: false
                    required:
                      - brokerage
                      - offices
                      - agents
                      - counts
                    additionalProperties: false
                required:
                  - brokerage
                  - summary
                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.