---
title: "Patch project canvas"
method: PATCH
path: "/projects/{projectId}/canvas"
tags: ["Projects"]
---

# Patch project canvas

`PATCH /projects/{projectId}/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.

## Path parameters

- `projectId` string, required — Project identifier

## Request body

- object
  - `diagram` string, required — Mermaid flowchart diagram to apply
  - `node_params` object — Optional per-node parameters keyed by Mermaid node ID.

## Response `200`

Project canvas patched.

- object
  - `project_id` string, required — Project identifier
  - `canvas_url` string, uri, required — Project canvas URL
  - `diagram` string, required — Applied Mermaid flowchart diagram
  - `created_node_count` integer, required
  - `created_edge_count` integer, required
  - `warnings` string[]

## Other responses

- `400` — 400
- `401` — 401
- `402` — 402
- `403` — 403
- `404` — 404
- `409` — 409
- `429` — 429
- `500` — 500

---

[API](https://skmtc.net/florafauna-ai/apis/flora-ai-api.md) · [All operations](https://skmtc.net/florafauna-ai/apis/flora-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/florafauna-ai/flora-ai-api/revisions/2f4a714f8ce9/schema)
