Skip to main content
POST
/
pullzone
/
{id}
/
updatePrivateKeyType
Change hostname private key type
curl --request POST \
  --url https://api.bunny.net/pullzone/{id}/updatePrivateKeyType \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Hostname": "<string>",
  "KeyType": "Ecdsa"
}
'

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int32>
required

The hostname that the private key type will be updated on

Body

Hostname
string | null
required
KeyType
enum<string>
required

0 = Ecdsa
1 = Rsa

Available options:
Ecdsa,
Rsa
Example:

"Ecdsa"

Response

The key type was changed successfully