Upload a zone custom page
Uploads the HTML for one of a zone's custom pages (multipart field file), overwriting any existing page of that type. The type path segment selects the page: error, maintenance, security or challenge. The file must be non-empty and at most 1 MiB. Returns the stored page. Whether the page is actually served is controlled separately by the zone's per-type enable setting.
Authorizations
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.
JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer
Parameters
Path Parameters
Zone identifier
custom-page identifier
Request Body
The HTML file to store for this page type. Non-empty, max 1 MiB.
"binary"Responses
custom-page resource created
