---
title: "Update a canvas template"
method: PATCH
path: "/v1/canvas-templates/{id}"
tags: ["Canvases"]
---

# Update a canvas template

`PATCH /v1/canvas-templates/{id}`

## Request

- Base URL: `https://api.masko.ai`
- URL: `https://api.masko.ai/v1/canvas-templates/{id}`
- Auth: HTTP bearer

Updates name, description, public flag, or the template graph for a user-owned template. Built-in templates cannot be modified (returns 403). No credit cost.

Select Masko-API-Version: 2026-09-26 (or api_version=2026-09-26) for the canonical mascot contract shown first. Existing unversioned clients keep legacy collection fields. A mascot_id query filter also selects the canonical contract. Mixing identifier names returns 400.

## Path parameters

- `id` string, uuid, required

## Query parameters

- `api_version` '2026-09-26' | 'legacy'

## Headers

- `Masko-API-Version` '2026-09-26' | 'legacy'

## Request body

- UpdateTemplateBody
  - `name` string: New template name.
  - `description` string: Updated description.
  - `template` object: Replacement template JSON.
  - `public` boolean: Toggle whether template is visible to all users.

## Response `200`

Template updated

- CanvasTemplateResponse
  - `data` CanvasTemplate, required
    - `object` 'canvas_template': Resource type. Always "canvas_template".
    - `id` string, required
    - `name` string, required
    - `description` string, nullable, required
    - `source` 'builtin' | 'user', required
    - `public` boolean
    - `nodes` object[]
    - `edges` object[]
    - `inputs` object[]
    - `created_at` string

## Other responses

- `400`: Validation error
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Conflict

---

[API](https://skmtc.dev/masko/apis/masko-api.md) · [All operations](https://skmtc.dev/masko/apis/masko-api/llms.txt) · [OpenAPI document](https://skmtc.dev/masko/apis/masko-api/revisions/91eb3006a92f?raw)
