# datacenter on POST /v1/servers stops working

Calls to POST /v1/servers, body parameter datacenter on Hetzner Cloud API stopped working on July 1, 2026.

On July 1, 2026, the Hetzner Cloud API removed the datacenter body parameter for the POST /v1/servers endpoint. Requests to POST /v1/servers that use the datacenter body parameter fail since that date. The change follows the earlier deprecation of the property in request and response payloads.

## What to use instead

Send location instead of datacenter when creating a server.

- API: Hetzner Cloud API (api.hetzner.cloud)
- Kind: Parameter removal
- Announced: December 16, 2025
- Takes effect: July 1, 2026
- Calls after that day: fail
- Calls it hits: `POST /v1/servers`, `body parameter datacenter`
- Source: [Announcement](https://docs.hetzner.cloud/changelog)
- Verified: November 6, 2026, against Hetzner Cloud API's own pages
- Page: https://www.okapi.bot/providers/hetzner-cloud-api/breaking-changes/datacenter-on-post-v1-servers-stops-working/

## Hetzner Cloud API's words

> We deprecated the datacenter property in the request body and response of Servers and Primary IPs. The removal will happen after 1 July 2026.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
