/v1/workspaces/{workspace_id}/notification-types/{type_id}/templates/{channel}/{locale}AuthDelete a template
Deletes the template and its versions. Sends to that channel and locale fall back along the locale chain.
Path parameters
workspace_id*string · uuidId of the workspace.
type_id*string · uuidId of the type.
channel*enum (5)Template channel.
locale*stringTemplate locale (BCP 47).
Response · 204
Deleted.
Example
Request
DELETE https://api.notify.productcraft.co/v1/workspaces/{workspace_id}/notification-types/{type_id}/templates/{channel}/{locale}
Authorization: Bearer YOUR_TOKENimport { Notify } from "@productcraft/notify";
// Reads PRODUCTCRAFT_API_KEY and PRODUCTCRAFT_WORKSPACE_ID from the environment;
// client routes take a recipient token: notify.client({ token })
const notify = new Notify();
await notify.notificationTypes.templates.delete("3f0c3c1e-8a2b-4c55-9d3f-0a1b2c3d4e5f", "inbox", "pt-PT");notify.notificationTypes.templates.delete(typeId, channel, locale, options?): void