How to change the weekly data retention rate from 730 days to 365?

Document ID : KB000124934
Last Modified Date : 18/01/2019
Show Technical Document Details
Introduction:
We want to change the number of days of weekly data that is retained to reduce space demands.
Background:
By default, data is retained in Data Repository for the following number of days:
Polled data: 45 days
Hourly rollup data: 90 days
Daily rollup data: 365 days
Weekly rollup data: 730 days
Environment:
CAPM 3.x
Instructions:
This is done with rest:

When I query my settings I see:
http://my_DA:8581/rest/globalretentiondefinition
 
<GlobalRetentionDefinitionList>
<GlobalRetentionDefinition version="1.0.0">
<ID>5</ID>
<DailyRollupDataRetentionPeriod>365</DailyRollupDataRetentionPeriod>
<HistoricConfigurationDataRetentionPeriod>7</HistoricConfigurationDataRetentionPeriod>
<GtdRollupDataRetentionPeriod>730</GtdRollupDataRetentionPeriod>
<PolledDataRetentionPeriod>45</PolledDataRetentionPeriod>
<HourlyRollupDataRetentionPeriod>90</HourlyRollupDataRetentionPeriod>
<Item version="1.0.0">
<Name>Global Retention Definition</Name>
<CreateTime>Sun Jul 29 14:44:48 2018 -0400</CreateTime>
</Item>
</GlobalRetentionDefinition>
</GlobalRetentionDefinitionList>
….
*GTD = Greater than day, and refers to the weekly roll up table.

And to edit the value do a PUT:
Enter the retention periods that you want to change in the Body tab of the HTTP Request pane.
For example:
 
<GlobalRetentionDefinition version="1.0.0">
<GtdRollupDataRetentionPeriod>365</GtdRollupDataRetentionPeriod>
</GlobalRetentionDefinition>
 
 
Additional Information:
https://docops.ca.com/ca-performance-management/3-6/en/administrating/data-repository-administration/configure-data-retention-rates/

The minimum number of days that Data Repository can retain data for is as follows:
 
Polled data: 2 days
Hourly rollup data: 8 days
 
Note: When the hourly retention rate is less than 32 days, the calendar heat chart views show daily data (only one sample per day). The charts appear sparse as a result.
 
Daily rollup data: 31 days
Weekly rollup data: 366 days