Updates the basic information and the consumption retry policy for a consumer group.
Operation description
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rocketmq:UpdateConsumerGroup |
update |
*ConsumerGroup
|
None | None |
Request syntax
PATCH /instances/{instanceId}/consumerGroups/{consumerGroupId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| instanceId |
string |
Yes |
The ID of the instance to which the consumer group belongs. |
rmq-cn-7e22on9**** |
| consumerGroupId |
string |
Yes |
The ID of the consumer group to update. |
CID-TEST |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| remark |
string |
No |
The updated remarks for the consumer group. |
This is the remark for test. |
deliveryOrderType
deprecated
|
string |
No |
This parameter cannot be modified. Valid values:
|
Concurrently |
| consumeRetryPolicy |
object |
Yes |
The updated consumption retry policy for the consumer group. For more information, see Consumption retry. |
|
| retryPolicy |
string |
Yes |
The retry policy. For more information, see Message retry. Valid values:
Valid values:
|
DefaultRetryPolicy |
| maxRetryTimes |
integer |
No |
The maximum number of retries. |
16 |
| deadLetterTargetTopic |
string |
No |
The dead-letter topic. If a message fails to be consumed after the maximum number of retries, the message is sent to a dead-letter topic. You can then perform business recovery or trace the message. For more information, see Consumption retry and dead-letter messages. |
DLQ_mqtest |
| fixedIntervalRetryTime |
integer |
No |
The fixed retry interval. Unit: seconds. This parameter is valid only if you set the retryPolicy parameter to FixedRetryPolicy. Value range:
|
10 |
| maxReceiveTps |
integer |
No |
The maximum transactions per second (TPS) for message consumption. |
1000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Result<boolean> |
||
| requestId |
string |
The request ID. Each request has a unique ID. You can use this ID to troubleshoot issues. |
C7F94090-3358-506A-97DC-34BC803C**** |
| success |
boolean |
Indicates whether the request was successful. |
true |
| data |
boolean |
The returned result. |
true |
| code |
string |
The error code. |
InvalidDeliveryOrderType |
| message |
string |
The error message. |
Parameter deliveryOrderType is invalid. |
| httpStatusCode |
integer |
The HTTP status code. |
400 |
| dynamicCode |
string |
The dynamic error code. |
DeliveryOrderType |
| dynamicMessage |
string |
The dynamic error message. |
deliveryOrderType |
Examples
Success response
JSON format
{
"requestId": "C7F94090-3358-506A-97DC-34BC803C****",
"success": true,
"data": true,
"code": "InvalidDeliveryOrderType",
"message": "Parameter deliveryOrderType is invalid.",
"httpStatusCode": 400,
"dynamicCode": "DeliveryOrderType",
"dynamicMessage": "deliveryOrderType"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.