Delete Template
Permanently deletes a QR code design template. This action cannot be undone. Existing QR codes that were generated using this template are not affected.
DELETE
/v1/qr/templates/{template_id} qr:write Parameters
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
template_id | string | Yes | The unique identifier of the template to delete. |
Request examples
curl -X DELETE https://xqr.co/api/v1/qr/templates/tpl_abc123 \ -H "Authorization: Bearer YOUR_API_KEY"const templateId = "tpl_abc123";
const res = await fetch( `https://xqr.co/api/v1/qr/templates/${templateId}`, { method: "DELETE", headers: { Authorization: "Bearer YOUR_API_KEY", }, });
// 204 No Content on successconsole.log(res.status); // 204import httpx
template_id = "tpl_abc123"
res = httpx.delete( f"https://xqr.co/api/v1/qr/templates/{template_id}", headers={"Authorization": "Bearer YOUR_API_KEY"},)
assert res.status_code == 204Response
204 No Content
The response body is empty on success.
Was this page helpful?
Thanks for your feedback!