---
title: "Toggles a location closure. Creates one if it doesn't exist, deletes it if it does."
method: POST
path: "/LocationClosures/toggle"
tags: ["LocationClosures"]
---

# Toggles a location closure. Creates one if it doesn't exist, deletes it if it does.

`POST /LocationClosures/toggle`

## Request body

- ToggleLocationClosureDto — Request DTO for toggling a location closure.
  - `locationId` string, required
  - `closureDate` string, required
  - `reason` string, nullable

## Response `200`

OK

- ToggleLocationClosureResponseDto — Response DTO for toggle operation.
  - `isClosed` boolean
  - `closure` LocationClosureResponseDto — Response DTO for a location closure.
    - `id` string
    - `locationId` string
    - `closureDate` string
    - `reason` string, nullable
    - `createdById` string, nullable
    - `createdBy` UserSummaryDto
      - `id` string
      - `email` string
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `displayName` string, nullable
      - `type` string
      - `roleId` string, nullable
      - `roleName` string, nullable
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/versions/a905bde4e796/schema)
