# datacenter on POST /v1/primary_ips stops working

Calls to POST /v1/primary_ips, 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 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.

## What to use instead

Send location instead of datacenter when creating a Primary IP.

- 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/primary_ips`, `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-primary-ips-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
