---
title: "Add Custom Certificate"
method: POST
path: "/pullzone/{id}/addCertificate"
tags: ["Pull Zone"]
---

# Add Custom Certificate

`POST /pullzone/{id}/addCertificate`

## Path parameters

- `id` integer, required

## Request body

- AddCertificateRequestModel
  - `Hostname` string, required — The hostname to which the hostname will be added
  - `Certificate` string, required — The Base64 encoded binary data of the certificate file
  - `CertificateKey` string, required — The Base64 encoded binary data of the certificate key file

## Response `204`

The certificate was successfuly added

## Other responses

- `400` — Failed adding the certificate
- `401` — The request authorization failed
- `404` — The Pull Zone with the requested ID was not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/bunny/apis/bunny-net-cdn-logging.md) · [All operations](https://skmtc.net/bunny/apis/bunny-net-cdn-logging/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bunny/bunny-net-cdn-logging/versions/9e622620664b/schema)
