- Documentation
Cloud Native Message Engine
BMQ Instance User Guide
API reference
Instance management
UpdateInstanceMessageRetention - Modify instance message retention period
Instance management
UpdateInstanceMessageRetention - Modify instance message retention period
UpdateInstanceMessageRetention - Modify instance message retention period
Call the UpdateInstanceMessageRetention API to modify the default message retention period for all topics under the target instance.
Description
- Request URL: https://open.volcengineapi.com?Action=UpdateInstanceMessageRetention&Version=2023-06-01
Debug
API Explorer
You can initiate calls online through API Explorer without paying attention to the signature generation process and quickly obtain the call results.
Request parameters
Only the unique request parameters of this interface and some common parameters are listed below. For more information, see common parameters. Action string required Example value: UpdateInstanceMessageRetention
The operation to perform. Value: UpdateInstanceMessageRetention.
Version string required Example value: 2023-06-01
API version. Value: 2023-06-01.
Retention integer required Example value: 96
The default message retention period for all topics under the instance, in hours.
The supported retention range is 1–336 hours (14 days).
InstanceId string required Example value: o-00c0****m46c
BMQ instance ID.
Response parameters
Only the unique response parameters of this API are listed below. For more details, see response structure. Status string Example value: SUCCESS
Operation status.
Message string Example value: OK
Operation message.
Request example
Response example
Error code
The following table lists error codes related to this interface and business logic. Refer to the Public error codes section for common error codes. Last updated: 2026.01.26 15:48:12