---
title: "Updates a server's metadata."
method: PATCH
path: "/servers/{server_id}"
tags: ["CS2 Servers"]
---

# Updates a server's metadata.

`PATCH /servers/{server_id}`

## Path parameters

- `server_id` integer, required

## Request body

- ServerUpdate
  - `name` string, nullable — A new name.
  - `host` string, hostname — an IPv4/IPv6 address or domain
  - `port` integer, nullable — A new port.
  - `owner_id` string, u-int64 — a 64-bit SteamID

## Response `204`

## Other responses

- `401`
- `404`
- `409` — The specified name or host+port combination is already in use.
- `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)
