Skip to content

Delete a zone custom page

DELETE
/api/zones/{zoneId}/custom-page/{type}

Removes the stored HTML for one of a zone's custom pages (error, maintenance, security or challenge) and, if that page type is currently active, disables it for the zone so it is no longer served. Idempotent: deleting a page that is not stored still succeeds. Returns 204 No Content.

Authorizations

ApiToken

Long-lived API token created via POST /api/api-tokens (returned once in plaintext). A token created with readOnly may only perform safe requests (GET, HEAD, OPTIONS); write requests are rejected on every endpoint.

Type
API Key (header: X-API-TOKEN)
or
JWT

JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer .

Type
HTTP (bearer)

Parameters

Path Parameters

zoneId*

Zone identifier

Type
string
Required
type*

custom-page identifier

Type
string
Required

Responses

custom-page resource deleted

Playground

Authorization
Variables
Key
Value

Samples

Powered by VitePress OpenAPI