Change a diagram (make the next revision)
Applies an edit and keeps the old version: every change appends a revision and nothing is overwritten. Give exactly one of ops, mermaid, restoreRevision, or brief alone (brief may also accompany ops or mermaid). An edit that changes nothing returns noop: true. A retry with the same requestId returns the first result (replayed: true). A stale baseRevision returns 409 with the current revision and what changed, unless the current content already equals what the edit asked for (then noop).
Request
- Base URL: https://api.zindex.ai
- URL: https://api.zindex.ai/v1/diagrams/{id}/revisions
- Auth: one of:
- HTTP bearer
- API key in header X-API-Key
Path parameters
The diagram's ID or key
Headers
Your client's name and version, such as my-agent/1.2, kept as the client that made the revision, report or feedback item, as history and outlines show it. The first 100 characters are kept. Without it, the User-Agent's first product token is used.
Request body
Response
The write envelope
Changes
No recorded changes to this operation across all 1 revision of this API.