---
title: "Set Force SSL"
method: POST
path: "/pullzone/{id}/setForceSSL"
tags: ["Pull Zone"]
---

# Set Force SSL

`POST /pullzone/{id}/setForceSSL`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/pullzone/{id}/setForceSSL`
- Auth: API key in header `AccessKey`
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-net-api/docs/pullzone/:id/setForceSSL/post.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `id` integer, required

## Request body

- ForceSSLRequestModel
  - `Hostname` string, required: The hostname that will be updated
  - `ForceSSL` boolean, required: Set to true to force SSL on the given pull zone hostname

## Response `204`

Force SSL was successfully updated

## Other responses

- `400`: Failed to configure Force SSL
- `401`: The request authorization failed
- `404`: The Pull Zone with the requested ID was not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/bunny/apis/bunny-net-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-net-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-net-api/revisions/2b06f94dbfbf?raw)
