v8

latestOpenAPI 3.1.1LicenseRef-Proprietaryraw.githubusercontent.com2026-05-19280916.6 KB
Projects

Patch project canvas

Applies a Mermaid flowchart patch to the project canvas using the same create_workflow path as the Fauna agent. The diagram may add nodes, connect nodes, and reference existing canvas nodes by their Mermaid short IDs.

patch/projects/{projectId}/canvas

Path parameters

projectIdstring required

Project identifier

Example:prj_abc123

Project identifier

Request body

diagramstring required

Mermaid flowchart diagram to apply

node_paramsobject

Optional per-node parameters keyed by Mermaid node ID.

Example request

{
  "diagram": "graph LR\n  source[\"Product photo (Image)\"]\n  output[\"Editorial campaign image (Image)\"]\n  source --> output"
}

Response

Project canvas patched.

project_idstring required

Project identifier

canvas_urlstring uri required

Project canvas URL

diagramstring required

Applied Mermaid flowchart diagram

created_node_countinteger required
created_edge_countinteger required
warningsstring[]

Example response

{
  "project_id": "prj_abc123",
  "diagram": "graph LR\n  n1[\"Prompt (text)\"]\n  n2[\"Result (image)\"]\n  n1 --> n2"
}