---
title: Adding the RetainHeader policy
description: To add the RetainHeader policy to the Akana API Gateway:
component: pingintelligence
version: 5.2
page_id: pingintelligence:pingintelligence_integrations:pingintelligence_akana_add_retainheader
canonical_url: https://docs.pingidentity.com/pingintelligence/5.2/pingintelligence_integrations/pingintelligence_akana_add_retainheader.html
revdate: April 3, 2024
section_ids:
  about-this-task: About this task
  steps: Steps
---

# Adding the RetainHeader policy

## About this task

To add the RetainHeader policy to the Akana API Gateway:

## Steps

1. Sign on to **Akana Policy Manager** and click **Tenant** in the left navigation.

2. Under **Policies**, click **Operational Policies**.

3. Select **Add Policy** and choose **Private Operational Script Policy** from the **Type** drop-down list.

   ![A screenshot of the Select Policy Creation Option page in Akana Policy Manager.](../_images/mfl1579954034176.png)

4. Click **Next**.

5. Enter **Policy Name** and **Description**, click **Finish**, and then click **Close**.

![A screenshot of the Specify Policy Details page in Akana Policy Manager.](../_images/rmt1581325031595.png)

1. Navigate to the **Workbench** tab.

2. In the **Private Operational Script Policy** section, select the policy name and click **Modify**.

![A screenshot of the Workbench tab in Akana Policy Manager.](../_images/ywk1581325705849.png)

1. For **Script Language**, select **JavaScript** from the drop-down list.

2. Copy the contents of the `retain-header-policy.js` script and paste them into **Expression**.

3. For **Function**, select **Pre-policy Auditing** from the drop-down list.

   ![A screenshot of the Modify Script Policy page in Akana Policy Manager.](../_images/wic1581327121243.png)

4. Click **Finish** and then click **Close**.

5. Under the **WorkFlow Actions**, click **Activate Policy** to activate the RetainHeader policy.
