---
title: "Deactivate office"
method: DELETE
path: "/api/offices/{officeGuid}"
tags: ["Offices"]
---

# Deactivate office

`DELETE /api/offices/{officeGuid}`

Deactivates the specified office. Returns 422 when user/subscriber is invalid, caller is not a broker-level user, or the office cannot be deactivated due to repository/business constraints.

### Validation & Requirements
#### Required Parameters
- `officeGuid` (path, string, format=guid)

#### Required JSON Body Fields
- None

#### Validations
- Invalid GUID values in `*Guid`/`*Guids` fields return `422 Unprocessable Entity`.
- Invalid date values in `*date*` fields return `422 Unprocessable Entity`.
- Missing required request body returns `422 Unprocessable Entity` with `Missing request body.`.
- Additional business-rule validation may return `422` with details in the `errors` array.

## Path parameters

- `officeGuid` string, guid, required

## Response `200`

- LinkedResponseOfDeactivateOfficeResponse
  - `value` DeactivateOfficeResponse
    - `message` string, nullable
    - `success` boolean
  - `warnings` string[], nullable
  - `links` Link[], nullable
    - `href` string, nullable
    - `rel` string, nullable
    - `method` string, nullable

## Other responses

- `403`
- `404`
- `409`
- `422`

---

[API](https://skmtc.net/skyslope/apis/skyslope-api.md) · [All operations](https://skmtc.net/skyslope/apis/skyslope-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/skyslope/skyslope-api/revisions/bad0d2db9b7a/schema)
