跳转到主要内容
POST
/
v1
/
knowledge
Create knowledge
curl --request POST \
  --url https://api.devin.ai/v1/knowledge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "body": "<string>",
  "name": "<any>",
  "parent_folder_id": "<string>",
  "trigger_description": "<string>",
  "pinned_repo": "all"
}'
{
  "id": "note-xxx",
  "name": "Getting the weather",
  "body": "Navigate to weather.com",
  "trigger_description": "When the user asks about the weather",
  "parent_folder_id": "folder-xxx",
  "created_at": "2024-01-01T00:00:00Z"
}

Authorizations

Authorization
string
header
required

Body

application/json
body
string
required
name
any
required
trigger_description
string
required
parent_folder_id
string
pinned_repo
string | null
Example:

Response

body
string
required
name
any
required
trigger_description
string
required
id
string
required
created_at
string<date-time>
required
parent_folder_id
string
pinned_repo
string | null
Example: