---
title: "Update graph"
method: PUT
path: "/v1/graphs/{graph_id}"
tags: ["KG API"]
---

# Update graph

`PUT /v1/graphs/{graph_id}`

Update the name and description of a Knowledge Graph.

## Path parameters

- `graph_id` string, uuid, required

## Request body

- UpdateGraphRequest
  - `name` string — The name of the Knowledge Graph (max 255 characters). Omitting this field leaves the name unchanged.
  - `description` string — A description of the Knowledge Graph (max 255 characters). Omitting this field leaves the description unchanged.
  - `urls` UpdateGraphWebUrl[] — An array of web connector URLs to update for this Knowledge Graph. You can only connect URLs to Knowledge Graphs with the type `web`. To clear the list of URLs, set this field to an empty array.
    - `url` string, required — The URL to be processed by the web connector.
    - `exclude_urls` string[] — An array of URLs to exclude from processing within this web connector.
    - `type` 'single_page' | 'sub_pages', required — The type of web connector processing for a URL.

## Response `200`

- GraphResponse
  - `id` string, uuid, required — A unique identifier of the Knowledge Graph.
  - `created_at` string, date-time, required — The timestamp when the Knowledge Graph was created.
  - `name` string, required — The name of the Knowledge Graph (max 255 characters).
  - `description` string — A description of the Knowledge Graph (max 255 characters).
  - `urls` WebConnectorUrl[] — An array of web connector URLs associated with this Knowledge Graph.
    - `url` string, required — The URL to be processed by the web connector.
    - `status` WebConnectorUrlState, required — The state of a web connector URL processing.
      - `status` 'validating' | 'success' | 'error', required — The status of web connector URL processing.
      - `error_type` 'invalid_url' | 'not_searchable' | 'not_found' | 'paywall_or_login_page' | 'unexpected_error' — The type of error that can occur during web connector URL processing.
    - `exclude_urls` string[] — An array of URLs to exclude from processing within this web connector.
    - `type` 'single_page' | 'sub_pages', required — The type of web connector processing for a URL.

---

[API](https://skmtc.dev/writer/apis/writer-enterprise-api.md) · [All operations](https://skmtc.dev/writer/apis/writer-enterprise-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/writer/writer-enterprise-api/revisions/313187c251a5/schema)
