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
Example request
{
"diagram": "graph LR\n source[\"Product photo (Image)\"]\n output[\"Editorial campaign image (Image)\"]\n source --> output"
}Response
Project canvas patched.
Example response
{
"project_id": "prj_abc123",
"diagram": "graph LR\n n1[\"Prompt (text)\"]\n n2[\"Result (image)\"]\n n1 --> n2"
}