更新画像模板的名称、描述或策略版本
更新画像模板。修改
plan_version 后,新写入的记忆遵循新策略版本规则,已写入的记忆不受影响。
请求体必须至少包含 name、description、plan_version、extract_scene 或 attributes_operations 中的一项。
请求方法与路径
PATCH https://dashscope.aliyuncs.com/api/v2/apps/memory/profile_schemas/{profile_schema_id}
请求参数
| 参数 | 类型 | 必填 | 位置 | 说明 |
|---|---|---|---|---|
profile_schema_id | string | 是 | Path | 画像模板 ID |
name | string | 否 | Body | 更新后的模板名称,最多 32 个字符 |
description | string | 否 | Body | 更新后的模板描述 |
plan_version | string | 否 | Body | 收费计划:pro 或 lite |
extract_scene | string | 否 | Body | 提取场景:efficient 或 intelligent |
attributes_operations | array | 否 | Body | 属性变更操作列表 |
attributes_operations[].op | string | 是 | Body | 操作类型:add、update 或 delete |
attributes_operations[].name | string | 条件必填 | Body | 属性名称;op=add 时必填,op=update 时可选 |
attributes_operations[].description | string | 否 | Body | 属性描述;适用于 add 和 update |
attributes_operations[].default_value | string | 否 | Body | 属性默认值;op=update 时可更新 |
attributes_operations[].attribute_id | string | 条件必填 | Body | 属性 ID;op=update 或 op=delete 时必填 |
memory_library_id | string | 否 | Body | 记忆库 ID |
代码示例
cURL