Knowledge
Create knowledge
Create a new piece of knowledge.
post/v1/knowledge
Request body
bodystring required
The content of the knowledge. Devin will read this when the knowledge gets triggered
{"stackTrail":"components:schemas:KnowledgeRequest:properties:name","oasType":"schema","type":"unknown","title":"Name","description":"The name of the knowledge, used only for displaying the knowledge on the knowledge page"}
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
{"stackTrail":"components:schemas:KnowledgeResponse:allOf:properties:name","oasType":"schema","type":"unknown","title":"Name","description":"The name of the knowledge, used only for displaying the knowledge on the knowledge page"}
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"
}