Knowledge

Create knowledge

Create a new piece of knowledge.

post/v1/knowledge

Request

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

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 created. Returns the newly created 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.