Compare two template versions
GET/v1/click/templates/:templateId/versions/:versionAId/diff/:versionBId
Returns a structured field-level diff between two versions of the same template. Useful for review UIs surfacing what changed between drafts or between a draft and its published counterpart. Body changes are reported as line-level adds/removes; metadata changes are reported as key sets.
Request
Responses
- 200
- 404
Version diff
Response Headers
Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.
W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.
Template or one of the versions was not found
Response Headers
Correlation id for this request, returned on every response (success and error). Quote it when contacting support to pinpoint the exact request, and use it to correlate your own logs. It is the same 128-bit id as the trace-id segment of the traceparent header.
W3C Trace Context identifier for this request, returned on every response. Send your own traceparent on a request to have it adopted, so a multi-call workflow shares one trace. Format: 00-<32-hex trace-id>-<16-hex span-id>-<2-hex flags>.