---
title: "Update knowledge"
method: PUT
path: "/v1/knowledge/{note_id}"
tags: ["Knowledge"]
---

# Update knowledge

`PUT /v1/knowledge/{note_id}`

Update the name, body, or trigger of a piece of knowledge.

## Path parameters

- `note_id` string, required

## Request body

- KnowledgeRequest — Information about a piece of knowledge
  - `body` string, required — The content of the knowledge. Devin will read this when the knowledge gets triggered
  - `name` unknown, required
  - `parent_folder_id` string — The id of the folder that this knowledge is located in. Null if the knowledge is not located in any folder
  - `trigger_description` string, required — The description of when this knowledge should be used by Devin
  - `pinned_repo` string, nullable — Pin knowledge to specific repositories. Valid values: - null: No pinning (default) - "all": Pin to all repositories - "owner/repo": Pin to specific repository

## Response `200`

Knowledge successfully updated. Returns the updated knowledge.

- KnowledgeResponse — Information about a piece of knowledge
  - `body` string, required — The content of the knowledge. Devin will read this when the knowledge gets triggered
  - `name` unknown, required
  - `parent_folder_id` string — The id of the folder that this knowledge is located in. Null if the knowledge is not located in any folder
  - `trigger_description` string, required — The description of when this knowledge should be used by Devin
  - `pinned_repo` string, nullable — Pin knowledge to specific repositories. Valid values: - null: No pinning (default) - "all": Pin to all repositories - "owner/repo": Pin to specific repository
  - `id` string, required — The id of the knowledge
  - `created_at` string, date-time, required — Creation timestamp (ISO 8601)

## Other responses

- `401` — Unauthorized - Invalid or missing API key
- `403` — Forbidden - User does not have permission to access the resource
- `404` — Resource not found

---

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