---
title: "Associate graphs"
method: PUT
path: "/v1/applications/{application_id}/graphs"
tags: ["template"]
---

# Associate graphs

`PUT /v1/applications/{application_id}/graphs`

## Request

- Base URL: `https://api.writer.com`
- URL: `https://api.writer.com/v1/applications/{application_id}/graphs`
- Auth: HTTP bearer

Updates the list of Knowledge Graphs associated with a no-code chat agent.

## Path parameters

- `application_id` string, required

## Request body

- ApplicationGraphIdsRequest
  - `graph_ids` string[], required: A list of Knowledge Graph IDs to associate with the application. Note that this will replace the existing list of Knowledge Graphs associated with the application, not add to it.

## Response `200`

Successful

- ApplicationGraphsResponse
  - `graph_ids` string[], required: A list of Knowledge Graphs associated with the application.

## Changes

- **2025-02-25** `3d3b2fe43375`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/writer/apis/writer-api/changes/v1/applications/:application_id/graphs/put.md)

---

[API](https://skmtc.dev/writer/apis/writer-api.md) - [All operations](https://skmtc.dev/writer/apis/writer-api/llms.txt) - [OpenAPI document](https://skmtc.dev/writer/apis/writer-api/revisions/59865afc5779?raw)
