Creates or updates a message queue (MQ) subscription.
Try it now
You can run this API directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After a successful run, OpenAPI Explorer can automatically generate SDK code examples.
Try it now
Authorization information
The following table lists the authorization information for this API. You can use it in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API. The details are as follows:
- 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 can be authorized in the operation. Details:
- Required resource types are marked with a preceding asterisk (*).
- For operations that do not support resource-level authorization,
All resourcesis used.
- Condition key: the condition keys defined by the cloud product itself.
- Related operation: other permissions required to successfully perform the operation. The caller must also have the permissions for the related operations for the operation to succeed.
| Operation | Access level | Resource type | Condition key | Related operation |
|---|---|---|---|---|
| bailianvoicebot:UpdateSubscription | update | *All resources * |
| None |
Request parameters
| Name | Type | Required | Description | Example value |
|---|---|---|---|---|
| BusinessUnitId | string | Yes | The ID of the Model Studio business space. | llm-c11iig67g863rih8 |
| MqType | string | Yes | The message push type. | ROCKET_MQ_4 |
| EventSubscriptions | array | Yes | A list of events to subscribe to. | |
| string | Yes | Subscribed events | Released | |
| Endpoint | string | No | The endpoint (required when ROCKET_MQ_4 or ROCKET_MQ_5 is used) | rmq-cn-l4p89zajz67.cn-hangzhou.rmq.aliyuncs.com:8080 |
| Topic | string | No | The queue topic (required when ROCKET_MQ_4 or ROCKET_MQ_5 is used) | test |
| UserName | string | No | The username (required when ROCKET_MQ_5 is used) | username |
| Password | string | No | The password (required when ROCKET_MQ_5 is used) | pwd |
| MqInstanceId | string | No | The MQ instance ID (required when ROCKET_MQ_5 is used) | rmq-cn-l4p89zajz67.cn |
| ProducerId | string | No | The producer ID (required when ROCKET_MQ_4 is used) | user1 |
Response parameters
| Name | Type | Description | Example value |
|---|---|---|---|
| object | Schema of Response | ||
| RequestId | string | Id of the request | D771A1B6-3D5F-174A-BEE1-98CE1000D337 |
| HttpStatusCode | integer | The HTTP status code. | 200 |
| Message | string | The message. | Instance llm-rj6aqmctjcit4acy does not exist. |
| Code | string | The API status or POP error code. | OK |
| Data | string | The returned result (application ID) | a395011f-a247-400f-bc69-28796749fd52 |
| Params | array | Dynamic error parameters | |
| param | string | Dynamic error parameters | llm-xdne77rxe14ziszr |
Examples
Sample success response
JSON format
Error codes
Visit the Error Center to view more error codes.
Change history
| Change time | Change summary | Operation |
|---|---|---|
| 2026-04-22 | New OpenAPI | View change details |