---
title: "Change hostname private key type"
method: POST
path: "/pullzone/{id}/updatePrivateKeyType"
tags: ["Pull Zone"]
---

# Change hostname private key type

`POST /pullzone/{id}/updatePrivateKeyType`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/pullzone/{id}/updatePrivateKeyType`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/pullzone/:id/updatePrivateKeyType/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required

## Request body

- PrivateKeyUpdateModel
  - `Hostname` string, required
  - `KeyType` 0 | 1, required: 0 = ECDSA 1 = RSA

## Response `200`

The key type was changed successfully

## Other responses

- `400`: Failed to update key type
- `401`: The request authorization failed
- `404`: The hostname was not found in the account
- `500`: Internal Server Error

## Changes

- **2026-11-12** `2b06f94dbfbf`: 3 breaking, 1 info
  - removed the enum value `0.00` of the request property `KeyType`
  - removed the enum value `1.00` of the request property `KeyType`
  - the `KeyType` request property type changed from `integer` to no type
  - added `#/components/schemas/PrivateKeyType` to the `KeyType` request property `oneOf` list

[Operation history](https://skmtc.dev/bunny/apis/bunny-net-api/changes/pullzone/:id/updatePrivateKeyType/post.md)

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
