Table of Contents

API : Message templates : Revert

Introduction

Delete a reseller's own version of a template, so the master template is used again (see messagetemplates). The deleted version is kept as a revision and can be loaded again with Revision and saved.

A master template cannot be deleted (409): change it, or load an older version from its history with Revision and save it.

Request

URL https://api.telecomx.dk/messagetemplates/CHANNEL/KEY/LANGUAGE
Method DELETE
Access level The template must be writable in the scope.
Param CHANNEL String EMAIL, SMS or PDF.
KEY String Key of the template.
LANGUAGE String da or en.
Query reseller Id Reseller whose own version is deleted. Without it the request is about the master template, which cannot be deleted.

Response

The template as after the revert, in the format of Get. A template the reseller has no version of is returned unchanged.

Errors

Error code Message Description
403 access_denied The template is not writable in this scope
404 template Template not found, not in this language, or not in this scope
404 reseller Reseller not found
409 template A master template cannot be deleted - change it, or load an older version from its history
500 internal_error <Unspecified>