---
title: "Updates an active ban."
method: PATCH
path: "/bans/{ban_id}"
tags: ["Player Bans"]
---

# Updates an active ban.

`PATCH /bans/{ban_id}`

## Path parameters

- `ban_id` integer, required

## Request body

- BanUpdate
  - `reason` 'macro' | 'auto-bhop' | 'auto-strafe'
  - `expires_at` string, date-time — a UTC timestamp

## Response `204`

## Other responses

- `400` — invalid path parameters
- `401`
- `404`
- `422` — invalid request body

---

[API](https://skmtc.dev/cs2kz/apis/cs2kz-api.md) · [All operations](https://skmtc.dev/cs2kz/apis/cs2kz-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cs2kz/cs2kz-api/revisions/73ecd7bbda3b/schema)
