Templates

Deleting templates

Deleting a template is done via the DELETE method. The exact link URL of the specific template has to be used as the endpoint. To get it, you can perform a GET /templates request, which returns the list of all templates and their link URL. If the template is within a workspace, ensure that the workspace is included in the URI.

Note: When a template is DELETED, all the associated scenarios, events and references to it in other endpoints will fail. So make sure that the template is not used anywhere before you delete it. Whispir doesn’t check for those links before it deletes the template.

  • JSON
  • XML

Deleting a template

The exact URI of the template has to be provided:

HTTP 1.1 DELETE https://api.<region>.whispir.com/templates/C37DCBAEFF73FEDA45?apikey=[your_key]
Authorization: Basic am9obi5zbWl0aDpteXBhc3N3b3Jk
x-api-key: your_api_key

 

Response

204 No Content