---
title: "Patch a canvas edge"
method: PATCH
path: "/v1/canvases/{canvasId}/edges/{edgeId}"
tags: ["Canvases"]
---

# Patch a canvas edge

`PATCH /v1/canvases/{canvasId}/edges/{edgeId}`

## Request

- Base URL: `https://api.masko.ai`
- URL: `https://api.masko.ai/v1/canvases/{canvasId}/edges/{edgeId}`
- Auth: HTTP bearer

Patches one edge without replacing the graph. Use this for speed tuning after generation: normal transitions use speed 2, snappy interact transitions use 3-4, held/special loops use 2, and calm loops use 1.

## Path parameters

- `canvasId` string, uuid, required
- `edgeId` string, required

## Request body

- PatchCanvasEdgeBody
  - `speed` number: Playback speed multiplier for this edge. Normal transitions use 2, snappy interact transitions use 3-4, calm loops use 1.

## Response `200`

Canvas edge patched

- CanvasEdgePatchResponse
  - `data` CanvasEdgePatchData, required
    - `id` string, uuid, required
    - `name` string, required
    - `edge` object, required
    - `graph` object, required
    - `updated_at` string, required

## 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)
