Driftwatch

APIs / Hetzner

Hetzner API changes

Breaking changes, deprecations and new fields in the Hetzner API, as they ship.

HetznerHetzner Cloud API4 behavioral1 additive
HetznerHetzner Cloud API1 breaking
  • Breaking

    Response field deprecated removed

    Reads of this field return undefined, and the failure surfaces wherever that value is used rather than at the call.

    20 places: GET /images · images[].deprecated, GET /images/{id} · image.deprecated, PUT /images/{id} · image.deprecated, POST /load_balancers · load_balancer.load_balancer_type.deprecated, GET /server_types · server_types[].deprecated, GET /servers · servers[].server_type.deprecated +14 more
    Code that breaks
    // response.images[0].deprecated is now undefined
    const deprecated = response.images[0].deprecated;
HetznerHetzner Cloud API1 breaking3 additive
  • Breaking

    assignee is now required

    Partial payloads are rejected.

    POST /volumes/{id}/actions/attach · assignee
    Code that breaks
    await client.post("/volumes/{id}/actions/attach", {
      // …
      assignee: /* now required */,
    });
  • Additive

    Request property assignee added

    No action needed unless it is required.

    POST /volumes · assignee · 2 call sites
2 new response fields
  • volume.assignee
  • volumes[].assignee
HetznerHetzner Cloud API2 behavioral9 additive
8 new response fields
  • load_balancer.public_net.ipv4.blocked
  • load_balancer.public_net.ipv6.blocked
  • load_balancer.public_net.ipv4.id
  • load_balancer.public_net.ipv6.id
  • load_balancers[].public_net.ipv4.blocked
  • load_balancers[].public_net.ipv6.blocked
  • load_balancers[].public_net.ipv6.id
  • load_balancers[].public_net.ipv4.id
HetznerHetzner Cloud API1 breaking
  • Breaking

    dns_ptr is now required

    Partial payloads are rejected.

    POST /floating_ips/{id}/actions/change_dns_ptr · dns_ptr · 4 call sites
    Code that breaks
    await client.post("/floating_ips/{id}/actions/change_dns_ptr", {
      // …
      dns_ptr: /* now required */,
    });