Hetzner Cloud API
datacenter body parameter removal on POST /v1/servers
Stopped workingSubscribe to Hetzner Cloud APIShare
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.
Calls it hits
POST /v1/serversbody parameter datacenter
What to use instead of these calls
Send location instead of datacenter when creating a server.
In 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.
Facts
- API
- Hetzner Cloud API
api.hetzner.cloud - Kind
- Parameter removal
- Announced
- December 16, 2025
- Takes effect
- July 1, 2026
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against Hetzner Cloud API's own pages
Questions
When does this change take effect?
Calls to POST /v1/servers, body parameter datacenter on Hetzner Cloud API stopped working on July 1, 2026.
What happens to calls after July 1, 2026?
They have failed since July 1, 2026.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from Hetzner Cloud API 10
-
POST /v1/primary_ipsParameter removal Stopped working -
/2009-04-04/meta-dataEndpoint removal Stopped working -
/2009-04-04/user-dataEndpoint removal Stopped working -
/latest/meta-dataEndpoint removal Stopped working -
/latest/meta-data/{id}Endpoint removal Stopped working -
/latest/user-dataEndpoint removal Stopped working -
POST /floating_ips/{id}/actions/change_dns_ptrBehaviour change Stopped working -
POST /load_balancers/{id}/actions/change_dns_ptrBehaviour change Stopped working -
POST /primary_ips/{id}/actions/change_dns_ptrBehaviour change Stopped working -
POST /servers/{id}/actions/change_dns_ptrBehaviour change Stopped working
You fixed this one by hand.
Okapi opens the pull request with the fix before the next breaking change reaches your code.