Okapi Okapi

Hetzner Cloud API datacenter body parameter removal on POST /v1/primary_ips

Stopped workingSubscribe to Hetzner Cloud APIShare

On July 1, 2026, the Hetzner Cloud API removed the datacenter body parameter from POST /v1/primary_ips. Calls specifying this parameter fail since that day. The property was previously deprecated in both requests and responses for Primary IPs.


Calls it hits

  • POST /v1/primary_ips
  • body parameter datacenter

What to use instead of these calls

Send location instead of datacenter when creating a Primary IP.

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.

Hetzner Cloud API, Announcement

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/primary_ips, 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

  1. POST /v1/serversParameter removal Stopped working
  2. /2009-04-04/meta-dataEndpoint removal Stopped working
  3. /2009-04-04/user-dataEndpoint removal Stopped working
  4. /latest/meta-dataEndpoint removal Stopped working
  5. /latest/meta-data/{id}Endpoint removal Stopped working
  6. /latest/user-dataEndpoint removal Stopped working
  7. POST /floating_ips/{id}/actions/change_dns_ptrBehaviour change Stopped working
  8. POST /load_balancers/{id}/actions/change_dns_ptrBehaviour change Stopped working
  9. POST /primary_ips/{id}/actions/change_dns_ptrBehaviour change Stopped working
  10. POST /servers/{id}/actions/change_dns_ptrBehaviour change Stopped working

All 6 Hetzner Cloud API v1 breaking changes →


You fixed this one by hand.

Okapi opens the pull request with the fix before the next breaking change reaches your code.

Add to GitHub

Get notifications

Subscribe to Hetzner Cloud API

Hear about each breaking change Hetzner Cloud API announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Hetzner Cloud API

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.