Canvases

Replace a complete canvas graph

Replaces the complete authored graph. Read the canvas first and send its graph_content_hash as expected_graph_hash. If another editor changes the graph first, the write returns 409 instead of overwriting it. Generated asset fields on unchanged nodes and edges are preserved. No credit cost; generation is triggered separately.

patch/v1/collections/{id}/canvases/{canvasId}

Request

  • Base URL: https://api.masko.ai
  • URL: https://api.masko.ai/v1/collections/{id}/canvases/{canvasId}
  • Auth: HTTP bearer

Path parameters

idstring uuid required
canvasIdstring uuid required

Request body

graphobject required

Full canvas graph to replace the current one. Nodes, edges, and inputs are overwritten.

expected_graph_hashstring

Graph content hash returned by the latest GET. When provided, the update is rejected with 409 if the canvas changed before this full-graph save.

Response

Canvas updated

Changes

No recorded changes to this operation across all 1 revision of this API.