---
title: "Update Graph"
method: PUT
path: "/api/graphs/{graph_id}"
tags: ["graphs"]
---

# Update Graph

`PUT /api/graphs/{graph_id}`

## Request

- Base URL: `https://app.ctlsurf.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.ctlsurf.com/api/graphs/{graph_id}`
- Auth: HTTP bearer

Update a graph if user has write access (owner or share with edit/admin).

## Path parameters

- `graph_id` string, uuid, required

## Request body

- GraphUpdate
  - `nodes` object[], nullable
  - `edges` object[], nullable
  - `meta` object, nullable

## Response `200`

Successful Response

- GraphResponse
  - `nodes` object[]
  - `edges` object[]
  - `meta` object
  - `id` string, uuid, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/ctlsurf/apis/notebook-control-plane.md) · [All operations](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/llms.txt) · [OpenAPI document](https://skmtc.dev/ctlsurf/apis/notebook-control-plane/revisions/ddfbbe20d5ce?raw)
