Delete Template
Delete a template from the workspace.
Endpoint
DELETE https://api.campaignlark.com/v1/templates/:id
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | required | The template ID. |
Sample Request
DELETE https://api.campaignlark.com/v1/templates/1
Response
Success — 200 OK
{
"error": null,
"data": "The template has been deleted successfully."
}
Errors
| Status | Message | Cause |
|---|---|---|
400 | Please provide a valid template ID. | id path param is missing or not a number. |
400 | We could not find the template you are looking for. | Template not found. |