Skip to main content
POST
Soft-deactivate an office (sets deactivatedAt)

Authorizations

Authorization
string
header
required

Microsoft Entra ID JWT (staff) or OAuth2 client-credentials token issued by APIM (partners).

Headers

if-match
string

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.

Path Parameters

id
string<uuid>
required

Query Parameters

requireEmpty

When true, refuse (409 OFFICE_HAS_ACTIVE_AGENTS, with details.activeAgentCount) while any active agent still has this as their primary office.

Response

200 - application/json

Default Response

id
string<uuid>
required
legacyMoxiOfficeId
string | null
required
brokerageId
string<uuid> | null
required
code
string | null
required
internalOfficeId
string | null
required

Short V1 internal office number (V1 client_office_id, e.g. "80000"). Unique when set. Distinct from legacyMoxiOfficeId (Moxi GUID) and code.

mlsMemberships
object[]
required
name
string
required

Legal entity name of the office (e.g. "Windermere Services Company"). Display name is commonName.

commonName
string | null
required

DEPRECATED: use name (the office legal entity name). Null for V1-sourced offices; still returned and accepted, will be removed in a later release.

regionId
string<uuid> | null
required
secondaryRegionId
string<uuid> | null
required
region
object | null
required
secondaryRegion
object | null
required
timezone
string | null
required
managerAgentId
string<uuid> | null
required
manager
object | null
required
phone
string | null
required
altPhone
string | null
required
fax
string | null
required
email
string | null
required
officeWebsite
string | null
required
address
string | null
required
address2
string | null
required
city
string | null
required
county
string | null
required
state
string | null
required
zipCode
string | null
required
mailingAddress
string | null
required
mailingAddress2
string | null
required
mailingCity
string | null
required
mailingState
string | null
required
mailingZip
string | null
required
social
object
required
displayPublic
boolean
required
tags
string[]
required
imageUrl
string | null
required
logoUrl
string | null
required
externalPartnerIds
object[]
required

Partner-system identifiers. Filtered by: partnerIdsFilter (staff see all; partners see entries matching their canonical partner_name and any granted_names).

isSystem
boolean
required
deactivatedAt
string<date-time> | null
required
createdAt
string
required
updatedAt
string
required
brokerage
object | null
required
officeWoboEnabled
boolean
required
woboEligibleRoles
string[]
required
woboSetBy
string | null
required
woboSetAt
string<date-time> | null
required
agentCount
integer
Required range: x >= 0
agentsPendingTos
integer
Required range: x >= 0
mlsUserCount
integer
Required range: x >= 0