Skip to main content

UpdateSubscription

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

Request parameters

NameTypeRequiredDescriptionExample value
BusinessUnitIdstringYes

The ID of the Model Studio business space.

llm-c11iig67g863rih8
MqTypestringYes

The message push type.

ROCKET_MQ_4
EventSubscriptionsarrayYes

A list of events to subscribe to.

stringYes

Subscribed events
Established - Call connected
Released - Call ended
RecordingReady - Recording ready
CdrReady - Call detail record generated
LabelReady - Label generated

Released
EndpointstringNo

The endpoint (required when ROCKET_MQ_4 or ROCKET_MQ_5 is used)

rmq-cn-l4p89zajz67.cn-hangzhou.rmq.aliyuncs.com:8080
TopicstringNo

The queue topic (required when ROCKET_MQ_4 or ROCKET_MQ_5 is used)

test
UserNamestringNo

The username (required when ROCKET_MQ_5 is used)

username
PasswordstringNo

The password (required when ROCKET_MQ_5 is used)

pwd
MqInstanceIdstringNo

The MQ instance ID (required when ROCKET_MQ_5 is used)

rmq-cn-l4p89zajz67.cn
ProducerIdstringNo

The producer ID (required when ROCKET_MQ_4 is used)

user1

Response parameters

NameTypeDescriptionExample value
object

Schema of Response

RequestIdstring

Id of the request

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

The HTTP status code.

200
Messagestring

The message.

Instance llm-rj6aqmctjcit4acy does not exist.
Codestring

The API status or POP error code.

OK
Datastring

The returned result (application ID)

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

Dynamic error parameters

paramstring

Dynamic error parameters

llm-xdne77rxe14ziszr

Examples

Sample success response JSON format
{
  "RequestId": "D771A1B6-3D5F-174A-BEE1-98CE1000D337",
  "HttpStatusCode": 200,
  "Message": "Instance llm-rj6aqmctjcit4acy 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.

Change history

Change timeChange summaryOperation
2026-04-22New OpenAPIView change details