Diff two versions
layerz_diffReturns the semantic diff between two revisions of a model: { from, to, diff: { items: [{ uid, displayName, status, fields? }], branches: [{ id, display_name, status?, items }], metadata: [...], summary: { added, removed, modified, branches } } }. items compares the base plan; branches lists, per branch, the overlay cells it records over the base (value / values / timeline_values, null where the base shows through) — a write under branch_id or an import on a branch appears there, not as a base change. from and to each take exactly one of revision_id, version_number or id; without to, the diff runs against the live model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Newer endpoint; omitted = the current live model. | |
| from | Yes | Older endpoint: exactly one of revision_id / version_number / id. | |
| model_id | No | Target model UUID. Required for user-scoped API keys; validated against the bound model for model-scoped keys. |