Last Updated on : 2026-02-26 09:17:43download
Based on the device ID, update the AI agent variables.
PUT: /v1.0/cloud/agent/ai/b/devices/{device_id}/agent-variables
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| device_id | String | path | true | The ID of the specified device. |
Description of body
| Parameter name | Type | IN | Required | Description |
|---|---|---|---|---|
| bind_role_type | Integer | body | false | The type of role to bind. Valid values:
role_id has a value, this parameter value must be passed. |
| role_id | String | body | false | The ID of the specified role. |
| variable_map | Map | body | true | Mapping relationships between variables. |
| Parameter name | Type | Description |
|---|---|---|
| variable_key | String | The key of the specified variable. |
| variable_value | String | The value of the specified variable. |
PUT: /v1.0/cloud/agent/ai/b/devices/{device_id}/agent-variables
{
"device_id": "6c3585ebfe301b40a8u***",
"variable_map": {
"custom.familyName": "testFamilyName"
}
}
[
{
"effective_scope_name": "Role's memory",
"memory_list": [
{
"memory_value": "Playing football, playing basketball, writing code, reading",
"memory_name": "Hobbies",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryInterests",
"effective_scope": 3
},
{
"memory_value": "100 years old",
"memory_name": "Age",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryAge",
"effective_scope": 3
},
{
"memory_value": "July 7",
"memory_name": "Birthday",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryBirthday",
"effective_scope": 3
},
{
"memory_value": "Tuyaya",
"memory_name": "Name",
"effective_scope_name": "Role's memory",
"memory_key": "sys.memoryUserFullName",
"effective_scope": 3
}
],
"effective_scope": 3
}
]
For more information, see error code.
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback