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

# Change hostname private key type

`POST /pullzone/{id}/updatePrivateKeyType`

## 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

---

[API](https://skmtc.dev/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.dev/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-cdn-logging/revisions/9e622620664b?raw)
