PHP Client for Cloudflare API
Zones

Holds

Holds endpoint reference.

Get

Retrieve whether the zone is subject to a zone hold, and metadata about the hold.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
php
$response = $client->zones()->holds()->get('ZONE_ID');
View this operation on the Cloudflare API Reference

Create

Enforce a zone hold on the zone, blocking the creation and activation of zones with this zone's hostname.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
includeSubdomainsboolNotrueIf provided, the zone hold will extend to block any subdomain of the given zone, as well as SSL4SaaS Custom Hostnames. For example, a zone hold on a zone with the hostname 'example.com' and include_subdomains=true will block 'example.com', 'staging.example.com', 'api.staging.example.com', etc.
php
$response = $client->zones()->holds()->create('ZONE_ID', true);
View this operation on the Cloudflare API Reference

Delete

Stop enforcement of a zone hold on the zone, permanently or temporarily, allowing the creation and activation of zones with this zone's hostname.

ParamTypeRequiredDefaultDescription
zoneIdstringYesZone Identifier.
holdAfterstring|nullNoIf provided, the hold will be temporarily disabled, then automatically re-enabled by the system at the time specified in this RFC3339-formatted timestamp. Otherwise, the hold will be disabled indefinitely.
php
$response = $client->zones()->holds()->delete('ZONE_ID', 'HOLD_AFTER');
View this operation on the Cloudflare API Reference
Copyright © 2026