Skip to main content
POST
/
pullzone
/
{id}
/
addCertificate
Add Custom Certificate
curl --request POST \
  --url https://api.bunny.net/pullzone/{id}/addCertificate \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Hostname": "<string>",
  "Certificate": "<string>",
  "CertificateKey": "<string>"
}
'

Authorizations

AccessKey
string
header
required

API Access Key authorization header

Path Parameters

id
integer<int64>
required

The ID of the requested Pull Zone

Body

The model used for adding new hostnames to a pull zone

Hostname
string | null
required

The hostname to which the hostname will be added

Certificate
string | null
required

The Base64 encoded binary data of the certificate file

CertificateKey
string | null
required

The Base64 encoded binary data of the certificate key file

Response

The certificate was successfuly added