跳转到主要内容
PATCH
更新组织安全 Profile 设置
更新组织默认选用的安全 Profile,并返回更新后的设置。

权限

需要使用在组织级别拥有 ManageSecureModeProfiles 权限的服务用户或个人访问令牌。正在运行的 Devin 会话所使用的令牌会被拒绝,因此会话无法修改管控其自身的 Profile。

行为

  • 省略的字段保持不变。null 会被拒绝;如需清除默认值,请将其设为 inherit,例如 {"default": {"selection": "inherit"}} 或 {"automations_default": {"selection": "inherit"}}。
  • 当 selection 为 profile 时,profile_id 为必填项;否则必须省略该字段。锁定的 Profile 可以是 org-owned 的 Profile,也可以是企业共享的 Profile 之一。
  • 正在运行的会话会在下次启动或唤醒时应用此更改。

授权

Authorization
string
header
必填

服务用户凭据(前缀:cog_)

路径参数

org_id
string
必填

组织 ID(前缀:org-)

示例:

"org-abc123def456"

请求体

application/json

PATCH 语义:省略的字段保持不变。

automations_default
SecurityProfileDefaultSelection · object | null

三态默认值:inherit(自身无绑定,沿用 上级的默认值)、none(显式禁用:不使用 Profile,即使 上级设有推荐默认值)或 profile(锁定 profile_id)。

选择退出无法绕过上级的强制 Profile:该选择仍会保存, 但只要强制 Profile 存在,就不会生效。

default
SecurityProfileDefaultSelection · object | null

三态默认值:inherit(自身无绑定,沿用 上级的默认值)、none(显式禁用:不使用 Profile,即使 上级设有推荐默认值)或 profile(锁定 profile_id)。

选择退出无法绕过上级的强制 Profile:该选择仍会保存, 但只要强制 Profile 存在,就不会生效。

响应

成功响应

automations_default
SecurityProfileDefaultState · object
必填

用于自动化触发的会话的默认值。其优先级介于组织/企业默认值与各自动化自身的绑定之间。

default
SecurityProfileDefaultState · object
必填

单个已存储默认绑定的读取视图。