Knowledge

Update knowledge

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

put/v1/knowledge/{note_id}

Request

  • Base URL
    https://api.devin.ai
  • URL
    https://api.devin.ai/v1/knowledge/{note_id}
  • Auth
    HTTP bearer

Path parameters

note_idstring required

The ID of the knowledge to update

Request body

bodystring required

The content of the knowledge. Devin will read this when the knowledge gets triggered

nameunknown required
parent_folder_idstring

The id of the folder that this knowledge is located in. Null if the knowledge is not located in any folder

trigger_descriptionstring required

The description of when this knowledge should be used by Devin

pinned_repostring nullable

Pin knowledge to specific repositories. Valid values:

  • null: No pinning (default)
  • "all": Pin to all repositories
  • "owner/repo": Pin to specific repository

Example request

{
  "pinned_repo": "all"
}

Response

Knowledge successfully updated. Returns the updated knowledge.

bodystring required

The content of the knowledge. Devin will read this when the knowledge gets triggered

nameunknown required
parent_folder_idstring

The id of the folder that this knowledge is located in. Null if the knowledge is not located in any folder

trigger_descriptionstring required

The description of when this knowledge should be used by Devin

pinned_repostring nullable

Pin knowledge to specific repositories. Valid values:

  • null: No pinning (default)
  • "all": Pin to all repositories
  • "owner/repo": Pin to specific repository
idstring required

The id of the knowledge

created_atstring date-time required

Creation timestamp (ISO 8601)

Example response

{
  "pinned_repo": "all"
}

Changes

No recorded changes to this operation across all 1 revision of this API.