v1
latestOpenAPI 3.1.02026-07-2418848.0 KBCreate a diagram in a file
Creates a new diagram element on the file's canvas.
post/api/files/{fileId}/diagrams
Path parameters
fileIdstring required
ID of the file to add the diagram to
Request body
Response
The created diagram
Example response
{
"diagramUrl": "https://app.eraser.io/workspace/abc123?diagram=def456&layout=canvas"
}