Skip to main content

Delete Template

Soft-delete a template. Campaigns that already reference this template continue to use the snapshot taken when they were sent — the delete only prevents new sends from referencing it.

Endpoint

DELETE /templates/:id

Returns: 200 OK

Path Parameters

ParameterTypeDescription
idstringThe template ID

Response

{
"message": "Template deleted"
}

Examples

curl -X DELETE "https://api.arsel.sa/v1/templates/01957e3a-4b5c-7d8e-9f0a-1b2c3d4e5f6a" \
-H "Authorization: Bearer be_your_api_key"

Error Responses

{
"status_code": 404,
"name": "not_found",
"message": "Template not found"
}