Updates the remarks for a topic.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:UpdateTopic |
update |
*Topic
|
None | None |
Request syntax
PATCH /instances/{instanceId}/topics/{topicName} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The ID of the instance that contains the topic. |
rmq-cn-7e22ody**** |
| topicName |
string |
Yes |
The name of the topic. |
topic_test |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| remark |
string |
No |
The updated remarks for the topic. |
This is the remark for test. |
| maxSendTps |
integer |
No |
The maximum number of transactions per second (TPS) for sending messages. |
1000 |
| liteTopicExpiration |
integer |
No |
The expiration time of a lite topic, in minutes. Valid values: 15 to 720. The default value is -1, which indicates that the topic never expires. |
20 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result |
||
| requestId |
string |
The ID of the request. This ID is unique to each request and can be used to troubleshoot issues. |
AF9A8B10-C426-530F-A0DD-96320B39**** |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
boolean |
The returned result. |
true |
| code |
string |
The error code. |
Topic.NotFound |
| message |
string |
The error message. |
The topic cannot be found. |
| httpStatusCode |
integer |
The HTTP status code. |
400 |
| dynamicCode |
string |
The dynamic error code. |
TopicName |
| dynamicMessage |
string |
The dynamic error message. |
topicName |
Examples
Success response
JSON format
{
"requestId": "AF9A8B10-C426-530F-A0DD-96320B39****",
"success": true,
"data": true,
"code": "Topic.NotFound",
"message": "The topic cannot be found.",
"httpStatusCode": 400,
"dynamicCode": "TopicName",
"dynamicMessage": "topicName"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.