Skip to content
BolderBolder Developers
Esc
↑↓navigate↵open⌘Jpreview

List a template's versions

Earlier bodies of a template, newest first (up to 10). A version is saved each time the body changes (identical consecutive bodies are kept once), with the lines added and removed against the previous one. Bodies are not included here; get one version for its body. Templates link here with store:template_versions.

GET/themes/{theme_id}/templates/{template_id}/versions
Authorization
AuthorizationBearer token (JWT) · headerrequired
Path parameters
theme_idstringrequired
template_idstringrequired
Responses
200

Versions, newest first

total_itemsinteger
_embeddedobject
Show properties
itemsThemeTemplateVersion[]
Show properties
Array of ThemeTemplateVersion
_linksHalLinks
idstring
saved_onstring<date-time>
labelstring | null
lines_addedinteger
lines_removedinteger
content_hashstring

SHA-256 of the body

bodystring

Only in GET .../versions/{id}

401

Unauthorized

403

Access denied

404

Template not found

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://api.onbolder.com/v2/themes/string/templates/string/versions' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "total_items": 0,
  "_embedded": {
    "items": [
      {
        "_links": {
          "property1": {
            "href": "string",
            "templated": true,
            "method": "get",
            "title": "string",
            "type": "string"
          },
          "property2": {
            "href": "string",
            "templated": true,
            "method": "get",
            "title": "string",
            "type": "string"
          }
        },
        "id": "string",
        "saved_on": "2019-08-24T14:15:22Z",
        "label": "before restore to 2026-11-24T10:00:00Z",
        "lines_added": 0,
        "lines_removed": 0,
        "content_hash": "string",
        "body": "string"
      }
    ]
  }
}

Was this page helpful?