Save a diagram
Saves a new diagram from a DSP scene document. Zindex mints the ID (any scene.id sent is ignored). key is your own name for it, unique among the workspace's live diagrams: repeating your own create with the same key and content returns the existing diagram (200, created: false) instead of a copy, so retries are safe. Every version is kept until you delete the diagram or its workspace is deleted. Send Mermaid text as mermaid instead of scene to import it.
Request
- Base URL: https://api.zindex.ai
- URL: https://api.zindex.ai/v1/diagrams
- Auth: one of:
- HTTP bearer
- API key in header X-API-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
A retried create: the existing diagram with the same key and content (created: false)
Changes
No recorded changes to this operation across all 1 revision of this API.