Delete template
DELETE /api/templates/deleteDeletes a template by name (all translations) or by hsm_id (a single one). Requires the templates:manage scope.
Request body
Section titled “Request body”| Field | Type | Description | |
|---|---|---|---|
channel_id | string | required | channel_id of the channel (nk_ prefix). Example: "nk_dvzobn7m4h4y". |
template_name | string | required | Name of the template to delete. Example: "bienvenida". |
hsm_id | string | optional | Id of a specific translation (hsm_id). If omitted, all are deleted. Example: "123456789". |
Responses
Section titled “Responses”| Status | Description | Schema |
|---|---|---|
200 | — | DeleteTemplateResponseDto |
Example
Section titled “Example”curl -X DELETE https://api.neike.dev/api/templates/delete \ -H "x-neike-api-key: whk_live_…" \ -H "Content-Type: application/json" \ -d '{ "channel_id": "nk_dvzobn7m4h4y", "template_name": "bienvenida" }'DeleteTemplateResponseDto
Section titled “DeleteTemplateResponseDto”| Field | Type | Description | |
|---|---|---|---|
success | boolean | required | Example: true. |
status_code | number | required | Example: 200. |