OpenTV ENTera & OpenTV Platform Documentation
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2
25.52_Q4 25.26_Q2 25.12_Q1 24.50_Q4 24.38_Q3 24.26_Q2 23.50_Q4 23.24_Q2 23.12_Q1 22.50_Q4 22.38_Q3 22.24_Q2

Update multiple purge configurations

Request

To change the retention period for multiple purge configurations, send a PUT request to:

http://<server>:<port>/cpm/operator/purgeConfigurations

Headers

  • role – must be operator

Mandatory arguments

In each purge configuration block, you must specify:

  • id – the ID of the purge configuration to be updated (in body)

  • retentionPeriod – the new retention period in days (in body)

You only need to include configuration blocks for the purge configurations that you want to change the retention period for.

Other arguments

None

Example

A PUT request with this payload will update the retention periods for the specified purge configurations:

{

   "purgeConfigurationSet":[
      {
         "id":"pc01",
         "retentionPeriod":15
      },
      {
         "id":"pc02",
         "retentionPeriod":15
      },
      {
         "id":"pc01",
         "retentionPeriod":15
      }
   ]
}

Response

A successful request returns an HTTP 200 status.

A bad request returns an HTTP 400 status.

A forbidden request returns an HTTP 403 status.

Example

{
   "totalRecords":3,
   "selfSet":[
      "/purge/v1/configurations/pc01",
      "/purge/v1/configurations/pc02",
      "/purge/v1/configurations/pc03"
   ]
}