Delete a template

Delete a template by id or exact name. Refused with 409 while a campaign still runs it.

DELETEhttps://app.trygtm.com/api/v1/templates/{template}
Scope
write

Path parameters

templatestringrequired
The template, by id or exact name (case-insensitive).

Headers

Idempotency-Keystringoptional
A key unique to this write, up to 255 characters. A retry carrying the same key returns the first response instead of running again. Kept for 24 hours.

Request

curl -X DELETE https://app.trygtm.com/api/v1/templates/Logistics%20opener \
  -H "Authorization: Bearer $TRYGTM_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)"

Response

{
  "data": {
    "detail": "Deleted the template “Logistics opener”."
  }
}

Was this page helpful?