Skip to main content
POST
更新知识包

限制说明

使用说明

  • scope 是唯一可修改的字段;不传则为空操作,返回当前知识包。
  • 团队范围必须传 scope_id;账户范围自动使用账户 ID。
  • 目标范围已存在知识包时返回 ReferenceExist——知识包不会被合并。
  • 每次调用都会记录到账户审计日志。

授权

app_key
string
query
必填

App key issued from the Flashduty console. Required on every public API call. Keep it secret — it grants the same access as the owning account.

请求体

application/json

将知识包移动到其他范围。

pack_id
string
必填

要更新的知识包 ID。

scope
enum<string> | null

目标范围;不传则为空操作,返回当前知识包。

可用选项:
account,
team
scope_id
integer<int64> | null

目标团队 ID;scopeteam 时必填,为 account 时自动设置。

响应

成功

Standard response envelope used by every Flashduty public API. On success data contains the endpoint-specific payload and error is absent. On failure error is present and data is absent. request_id is always present and is also mirrored in the Flashcat-Request-Id response header.

request_id
string
必填

本次请求的唯一 ID,与 Flashcat-Request-Id 响应头一致。反馈问题时请携带该 ID。

示例:

"01HK8XQE3Z7JM2NTFQ5YJ8P9R4"

error
object

响应结构中的错误 payload,仅在非 2xx 响应时出现。

data
object

知识包——一棵带版本号的文件树,AI SRE 会话启动时会注入到每个沙箱中。每个(账户, scope, scope_id)仅有一个知识包。