跳转到主要内容
PUT
/
v3beta1
/
enterprise
/
knowledge
/
notes
/
{note_id}
Update a note
curl --request PUT \
  --url https://api.devin.ai/v3beta1/enterprise/knowledge/notes/{note_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "body": "<string>",
  "name": "<string>",
  "trigger": "<string>"
}
'
{
  "access_type": "enterprise",
  "body": "<string>",
  "created_at": 123,
  "folder_id": "<string>",
  "is_enabled": true,
  "name": "<string>",
  "note_id": "<string>",
  "org_id": "<string>",
  "trigger": "<string>",
  "updated_at": 123
}

权限

需要一个在 Enterprise 级别具备 ManageAccountKnowledge 权限的服务用户。

Authorizations

Authorization
string
header
required

Service User credential (prefix: cog_)

Path Parameters

note_id
string
required

Body

application/json
body
string
required
name
string
required
trigger
string
required

Response

Successful Response

access_type
enum<string>
required
可用选项:
enterprise,
org
body
string
required
created_at
integer
required
folder_id
string | null
required
is_enabled
boolean
required
name
string
required
note_id
string
required
org_id
string | null
required
trigger
string
required
updated_at
integer
required