Delete Custom Error Template

DELETE /v1/templates/{uuid}

Permanently remove a custom error template. If the template was active, ngris reverts to serving the default page for that type immediately. The delete is scoped to the caller's account — a uuid that isn't in your active account returns 404 Template not found, exactly like an unknown one.

Path params

uuid string (uuid) Req
The template's uuid, from list or the response of upload.

Deprecated: the legacy integer id is still accepted in the path until the sunset, answered with Deprecation and Sunset headers. Use the uuid.

Response (204 No Content)

Empty body on success.

Errors

400 Bad Request
An integer id after the sunset (integer_id_unsupported).
401 Unauthorized
Missing or invalid auth.
404 Not Found
Template not found — unknown uuid, or a template of another account.
Request
curl -X DELETE "https://api.ngris.com/v1/templates/019b0817-a55a-7007-b556-eea4fe532a62" \ -H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris client = Ngris(api_key="<your_api_key>") client.templates.delete("019b0817-a55a-7007-b556-eea4fe532a62")
Response — 204 No Content
(empty body)
Was this helpful?
Was this helpful?