---
title: "Close connections for the specific user."
method: POST
path: "/api/hubs/{hub}/users/{userId}/:closeConnections"
tags: ["webpubsub"]
---

# Close connections for the specific user.

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

## Path parameters

- `hub` string, required
- `userId` string, required

## Query parameters

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

## Response `204`

No Content

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/azure/apis/azure-web-pubsub-service-rest-api.md) · [All operations](https://skmtc.net/azure/apis/azure-web-pubsub-service-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/azure-web-pubsub-service-rest-api/versions/a1fc29b91d68/schema)
