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": 0
}
'
{
  "ErrorKey": "<string>",
  "Field": "<string>",
  "Message": "<string>"
}

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

application/json
Hostname
string
required
Minimum string length: 1
KeyType
enum<integer>
required

0 = Ecdsa 1 = Rsa

Available options:
0,
1

Response

The key type was changed successfully