Delete Template
Delete a template from your account.
Campaigns already created from the template aren't affected. See Templates and campaigns. Once deleted, the template's UUID returns 404 on the template endpoints and 422 VALIDATION_ERROR as a template_uuid on Create Campaign.
Request
DELETE /templates/{uuid}
Path Parameters
| Parameter | Type | Description |
|---|---|---|
uuid | string | Template's UUID |
Example Request
curl -X DELETE "https://email.easy.tools/api/v1/templates/94c6cd70-6747-4f1d-8cbc-b83150f33bb7" \
-H "Authorization: Bearer YOUR_API_TOKEN"
Response
Success Response (204)
No response body.
Error Responses
Not Found Error (404)
Returned when the UUID is malformed, or does not match a template on your account.
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "Template with UUID '94c6cd70-6747-4f1d-8cbc-b83150f33bb7' not found"
}
}