Skip to main content

UpdateVariable

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.
OperationAccess levelResource typeCondition keyRelated operation
bailianvoicebot:UpdateVariableupdate
*All resources
*
    None
None

Request parameters

ParameterTypeRequiredDescriptionExample
BusinessUnitIdstringYes

The ID of the Model Studio business unit.

llm-0rxabdztx7rsdi7n
VariableIdstringYes

The ID of the variable.

af81a389-91f0-4157-8d82-720edd02b66b
DisplayNamestringYes

The display name.

Age
DescriptionstringYes

The description.

The user's current age

Response elements

ElementTypeDescriptionExample
object

Schema of Response

RequestIdstring

The request ID.

D771A1B6-3D5F-174A-BEE1-98CE1000D337
HttpStatusCodeinteger

The HTTP status code.

200
Messagestring

The error message.

Instance llm-xdne77rxe14ziszr does not exist.
Codestring

The internal error code.

OK
Datastring

The variable ID.

a395011f-a247-400f-bc69-28796749fd52
Paramsarray

A list of dynamic error parameters.

paramstring

A dynamic error parameter.

llm-xdne77rxe14ziszr

Examples

Success response JSON format
{
  "RequestId": "D771A1B6-3D5F-174A-BEE1-98CE1000D337",
  "HttpStatusCode": 200,
  "Message": "Instance llm-xdne77rxe14ziszr\n does not exist.",
  "Code": "OK",
  "Data": "a395011f-a247-400f-bc69-28796749fd52\n",
  "Params": [
    "llm-xdne77rxe14ziszr"
  ]
}

Error codes

Visit the Error Center to view more error codes.

Release notes

Change timeChange summaryOperation
2026-03-31New OpenAPIView change details