Help Center>
Distributed Message Service for RocketMQ>
API Reference>
APIs V2 (Recommended)>
Topic Management>
Modifying a Topic
Updated on 2022-11-07 GMT+08:00
Modifying a Topic
Function
This API is used to modify a topic.
URI
PUT /v2/{project_id}/instances/{instance_id}/topics/{topic}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
instance_id |
Yes |
String |
Instance ID. |
topic |
Yes |
String |
Topic name. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
read_queue_num |
No |
Number |
Total number of read queues. |
write_queue_num |
No |
Number |
Total number of write queues. |
permission |
No |
String |
Permissions. |
Response Parameters
None
Example Requests
Modifying a topic
PUT https://{endpoint}/v2/{project_id}/instances/{instance_id}/topics/{topic} { "read_queue_num" : 3, "write_queue_num" : 3, "permission" : "all" }
Example Responses
None
Status Codes
Status Code |
Description |
---|---|
204 |
The operation is successful. |
Error Codes
See Error Codes.
Parent topic: Topic Management
Feedback
Was this page helpful?
Provide feedback
Thank you very much for your feedback. We will continue working to improve the
documentation.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot