Skip to main content
POST
/
pullzone
/
{id}
/
setForceSSL
Set Force SSL
curl --request POST \
  --url https://api.bunny.net/pullzone/{id}/setForceSSL \
  --header 'AccessKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "Hostname": "<string>",
  "ForceSSL": true
}
'

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 setting the Force SSL setting

Hostname
string | null
required

The hostname that will be updated

ForceSSL
boolean
required

Set to true to force SSL on the given pull zone hostname

Response

Force SSL was successfully updated