XISUITEDokumentation

Document Template Versions

4 Endpunkte. Basis-URL: https://xapi.ambertech.cloud/api/v1

List a document template's version history (newest first)#

GET/document-templates/{templateId}/versionsToken

Parameter

NameOrtTypBeschreibung
templateIdPflichtPfadstring–

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/document-templates/{templateId}/versions" \
  -H "Authorization: Bearer $XISUITE_TOKEN"

Manually snapshot the current template as a new version#

POST/document-templates/{templateId}/versionsToken

Parameter

NameOrtTypBeschreibung
templateIdPflichtPfadstring–

Antworten

  • 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/document-templates/{templateId}/versions" \
  -H "Authorization: Bearer $XISUITE_TOKEN"

Get one version with its definition snapshot (read-only preview)#

GET/document-templates/{templateId}/versions/{versionId}Token

Parameter

NameOrtTypBeschreibung
templateIdPflichtPfadstring–
versionIdPflichtPfadstring–

Antworten

  • 200OK
Beispiel (cURL)
curl -X GET "https://xapi.ambertech.cloud/api/v1/document-templates/{templateId}/versions/{versionId}" \
  -H "Authorization: Bearer $XISUITE_TOKEN"

Restore a version onto the live template (version-locked)#

POST/document-templates/{templateId}/versions/{versionId}/restoreToken

Parameter

NameOrtTypBeschreibung
templateIdPflichtPfadstring–
versionIdPflichtPfadstring–

Request-Bodyapplication/jsonRestoreDocumentTemplateVersionDto

NameTypBeschreibung
versionPflichtnumber

Expected current template.version (optimistic lock). A mismatch → 409, so a concurrent edit is never silently overwritten.

Beispiel: 3

Antworten

  • 201Erstellt
Beispiel (cURL)
curl -X POST "https://xapi.ambertech.cloud/api/v1/document-templates/{templateId}/versions/{versionId}/restore" \
  -H "Authorization: Bearer $XISUITE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"version":"3"}'
Stand: 25. Oktober 2026© 2026 XISUITE · AmberTech Solutions