One replaced version of a template, with its text - the editor loads it, and it is only used again when it is saved. The list of revisions is part of Get.
| URL | https://api.telecomx.dk/messagetemplates/CHANNEL/KEY/LANGUAGE/revisions/REVISION_ID | ||
|---|---|---|---|
| Method | GET | ||
| Access level | As Get. | ||
| Param | CHANNEL | String | EMAIL, SMS or PDF. |
| KEY | String | Key of the template. | |
| LANGUAGE | String | da or en. | |
| REVISION_ID | Id | Id of the revision. It must belong to this template and scope. | |
| Query | reseller | Id | [optional] Reseller of the template. Without it, the master template. |
| Field | Type | Description |
|---|---|---|
| _id | Id | Id of the revision. |
| subject | String | Subject as it was. |
| body | String | Body as it was. |
| updatedAt | Date | When this version was saved. |
| updatedByName | String | Who saved it. |
| replacedAt | Date | When it was replaced or reverted. |
| Error code | Message | Description |
|---|---|---|
| 403 | access_denied | Insufficient access level |
| 404 | template | Template not found, not in this language, or not in this scope |
| 404 | revision | That version of the template was not found |
| 500 | internal_error | <Unspecified> |