Update the name, description, or plan version of a profile schema
Updates a profile schema. After modifying
plan_version, newly written memories follow the new version rule, while already written memories are not affected.
The request body must include at least one of name, description, plan_version, extract_scene, or attributes_operations.
Method and endpoint
PATCH https://dashscope.aliyuncs.com/api/v2/apps/memory/profile_schemas/{profile_schema_id}
Request parameters
| Parameter | Type | Required | Location | Description |
|---|---|---|---|---|
profile_schema_id | string | Yes | Path | Profile schema ID |
name | string | No | Body | Updated schema name, up to 32 characters |
description | string | No | Body | Updated schema description |
plan_version | string | No | Body | Billing plan: pro or lite |
extract_scene | string | No | Body | Extraction mode: efficient or intelligent |
attributes_operations | array | No | Body | List of attribute operations |
attributes_operations[].op | string | Yes | Body | Operation type: add, update, or delete |
attributes_operations[].name | string | Conditional | Body | Attribute name; required when op=add and optional when op=update |
attributes_operations[].description | string | No | Body | Attribute description; applies to add and update |
attributes_operations[].default_value | string | No | Body | Default attribute value; can be changed when op=update |
attributes_operations[].attribute_id | string | Conditional | Body | Attribute ID; required when op=update or op=delete |
memory_library_id | string | No | Body | Memory library ID |
Code examples
cURL