All Products
Search
Document Center

PolarDB:ModifyAgenticDBProjectHistoryRetention

Last Updated:Oct 22, 2026

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

POST  HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

DBClusterId

string

Yes

The AgenticDB cluster ID.

pagc-bp1abcdef1234567

TenantId

string

Yes

The tenant ID.

t-4b83e0da66674951

ProjectId

string

Yes

The ID of the target project.

proj-a1b2c3d4e5f6

HistoryRetentionSeconds

integer

Yes

The default valid range is 3,600 to 2,592,000 seconds (1 hour to 30 days), inclusive, subject to service configurations. Shortening the duration may clear historical data. Extending the duration does not restore cleared data.

604800

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

The request ID.

req-123

DBClusterId

string

DBClusterId

pagc-bp1abcdef1234567

TenantId

string

TenantId

t-4b83e0da66674951

ProjectId

string

ProjectId

proj-a1b2c3d4e5f6

HistoryRetentionSeconds

integer

The current effective history retention period of the project. To check the actual recoverable range, query the branch recovery window.

604800

Examples

Success response

JSON format

{
  "RequestId": "req-123",
  "DBClusterId": "pagc-bp1abcdef1234567",
  "TenantId": "t-4b83e0da66674951",
  "ProjectId": "proj-a1b2c3d4e5f6",
  "HistoryRetentionSeconds": 604800
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.