---
title: "Close the connections in the hub."
method: POST
path: "/api/hubs/{hub}/:closeConnections"
tags: ["webpubsub"]
---

# Close the connections in the hub.

`POST /api/hubs/{hub}/:closeConnections`

Close the connections in the hub.

## Path parameters

- `hub` string, required

## Query parameters

- `api-version` string, required
- `excluded` string[]
- `reason` string

## Response `204`

There is no content to send for this request, but the headers may be useful.

## Other responses

- `default` — The error response.

## Changes

- **2026-07-13** (2021-05-01-preview) `3c12a9fc6305` — 1 info
  - api operation id `WebPubSub_CloseAllConnections` removed and replaced with `CloseAllConnections`
- **2026-07-13** (2021-05-01-preview) `db70e5df6e15` — 1 info
  - endpoint added
- **2021-04-21** (2021-05-01-preview) `5c057b21a138` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/azure/apis/webpubsub/changes/api/hubs/:hub/:closeConnections/post.md)

---

[API](https://skmtc.dev/azure/apis/webpubsub.md) · [All operations](https://skmtc.dev/azure/apis/webpubsub/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/webpubsub/revisions/3c12a9fc6305/schema)
