---
title: "Rename, set the address or size, or change the status (open for customers, full, draining); opening runs the checks first"
method: PATCH
path: "/operator/servers/{serverId}"
tags: ["Operator"]
---

# Rename, set the address or size, or change the status (open for customers, full, draining); opening runs the checks first

`PATCH /operator/servers/{serverId}`

## Request

- Base URL: `https://hostingsurge.com/api/v1`
- URL: `https://hostingsurge.com/api/v1/operator/servers/{serverId}`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `__Host-hs_session`

## Path parameters

- `serverId` string, uuid, required

## Request body

- object
  - `name` string
  - `publicAddress` string, nullable
  - `status` 'preparing' | 'active' | 'full' | 'draining'
  - `cpus` number, nullable
  - `memoryMb` integer, nullable
  - `diskGb` integer, nullable
  - `note` string, nullable
  - `reason` string, required

## Response `200`

Saved

- object
  - `status` 'ok', required
  - `replay` boolean, required

## Other responses

- `400`: Invalid request (code invalid_request)
- `403`: A change on an operator-console session older than 5 minutes (details.reauthenticate), or not an operator
- `404`: Not found; also the answer to any request without a live operator-console session
- `409`: Conflict (already listed, not ready for customers, still in use, the main server)
- `429`: Too many requests (code rate_limited)
- `501`: Not available on this server (code not_configured)
- `503`: The hosting engine did not answer (code provider_unavailable)

---

[API](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api.md) · [All operations](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostingsurge/apis/hostingsurge-platform-api/revisions/4d08337cdff1?raw)
