Updates a variable.
Try it now
You can call this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful call, OpenAPI Explorer can automatically generate SDK code examples.
Debug
RAM authorization
The following table describes the authorization information of this API. You can use the Action element in a RAM policy statement to grant RAM users or RAM roles the permission to call this API. For more information, see:
- Operation: the specific permission point.
- Access level: the access level of each operation. Valid values: Write, Read, and List.
-
Resource type: the resource types that you can authorize for the operation. For more information, see:
- Resource types marked with an asterisk (*) are required.
- If an operation does not support resource-level authorization,
全部资源is used.
- Condition keyword: the condition keys that are defined by the cloud service.
- Related operation: other permissions that are required to successfully perform the operation. The caller must have the permissions of the related operations to succeed.
| Operation | Access level | Resource type | Condition key | Related operation |
|---|---|---|---|---|
| bailianvoicebot:UpdateVariable | update | *All resources * |
| None |
Request parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| BusinessUnitId | string | Yes | The ID of the Model Studio business unit. | llm-0rxabdztx7rsdi7n |
| VariableId | string | Yes | The ID of the variable. | af81a389-91f0-4157-8d82-720edd02b66b |
| DisplayName | string | Yes | The display name. | Age |
| Description | string | Yes | The description. | The user's current age |
Response elements
| Element | Type | Description | Example |
|---|---|---|---|
| object | Schema of Response | ||
| RequestId | string | The request ID. | D771A1B6-3D5F-174A-BEE1-98CE1000D337 |
| HttpStatusCode | integer | The HTTP status code. | 200 |
| Message | string | The error message. | Instance llm-xdne77rxe14ziszr does not exist. |
| Code | string | The internal error code. | OK |
| Data | string | The variable ID. | a395011f-a247-400f-bc69-28796749fd52 |
| Params | array | A list of dynamic error parameters. | |
| param | string | A dynamic error parameter. | llm-xdne77rxe14ziszr |
Examples
Success response
JSON format
Error codes
Visit the Error Center to view more error codes.
Release notes
| Change time | Change summary | Operation |
|---|---|---|
| 2026-03-31 | New OpenAPI | View change details |