Saltar al contenido principal
POST
/
v1
/
knowledge
Create knowledge entry
curl --request POST \
  --url https://api.devin.ai/v1/knowledge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>",
  "name": "<string>",
  "trigger_description": "<string>",
  "macro": "<string>",
  "parent_folder_id": "<string>",
  "pinned_repo": "<string>"
}
'
{
  "body": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "id": "<string>",
  "name": "<string>",
  "trigger_description": "<string>",
  "created_by": {
    "full_name": "<string>",
    "id": "<string>",
    "image_url": "<string>"
  },
  "macro": "<string>",
  "parent_folder_id": "<string>",
  "pinned_repo": "<string>"
}

Authorizations

Authorization
string
header
required

Personal API Key (apk_user_) or Service API Key (apk_)

Body

application/json
body
string
required
name
string
required
trigger_description
string
required
macro
string | null
parent_folder_id
string | null
pinned_repo
string | null

Response

Successful Response

body
string
required
created_at
string<date-time>
required
id
string
required
name
string
required
trigger_description
string
required
created_by
KnowledgeCreatedBy · object

Information about who created a knowledge entry.

macro
string | null
parent_folder_id
string | null
pinned_repo
string | null