跳转到主要内容
POST /api/v1/forward/identities/{identity_id}/templates/{template_id}/config 如果配置不存在则创建,已存在则更新 active 配置。Identity Config 是覆盖 Template 基线的用户级配置层。

请求头

路径参数

请求体参数

Identity Config 对象

identity_config 是存储的用户级覆盖 DSL,不是 Get Effective Config 返回的编译后运行时配置。

更新语义

资源 map 语义

skillsvaultsfiles 使用资源 ID 作为 map key。配置项内不要再写 skill_idvault_idfile_ididresource_id;这些运行时字段只会出现在 Forward 编译后的 Effective Config 中。

示例请求

示例响应

HTTP 200 OK

响应字段

错误

注意事项

  • 未传字段保持不变。
  • 字段传 null 表示从当前 Identity Config 中删除该字段。
  • 资源型 map 使用资源 ID 作为 key;某个资源项传 null 表示恢复继承。
  • Identity Config 当前不支持覆盖 environment_id

相关

获取 Identity Config

获取 Effective Config