查看指定画像模板的字段定义与配置详情
获取指定画像模板的详情,包含字段定义和配置信息。
接口
GET
https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v2/apps/memory/profile_schemas/{profile_schema_id}调用时请将 {WorkspaceId} 替换为真实的业务空间 ID。
路径参数
profile_schema_idstring必填画像模板 ID
查询参数
memory_library_idstring可选记忆库 ID
响应字段
request_idstring请求 ID
namestring画像模板名称
descriptionstring画像模板描述
plan_versionstring收费计划
extract_scenestring提取场景
attributesarray画像属性列表
attributes[].attribute_idstring属性 ID
attributes[].namestring属性名称
attributes[].descriptionstring属性描述
请求示例
curl -X GET "https://{WorkspaceId}.cn-beijing.maas.aliyuncs.com/api/v2/apps/memory/profile_schemas/{profile_schema_id}" \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header "Content-Type: application/json"
响应示例
{
"attributes": [
{"attribute_id": "04eb06f5f04a437b82d07ceb088103f9", "description": "用户的兴趣爱好", "name": "爱好"},
{"attribute_id": "2eff4652a6bc47b0803635033b1e08dd", "description": "用户职业", "name": "职业"},
{"attribute_id": "bb28e6cd522443fc9bf7e75b1377bf9d", "description": "用户年龄", "name": "年龄"}
],
"description": "包含年龄和兴趣的用户信息",
"extract_scene": "efficient",
"name": "用户基础画像",
"plan_version": "pro",
"request_id": "5eb49009-6782-95f4-85da-c5f20d288d9a"
}
重要更新模板使用 UpdateProfileSchema。
该文章对您有帮助吗?