---
updatedAt: 2026-03-01T18:37:41.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/property-mgr/llms.txt
---

# Activate an include

```curl cURL
includeId="inc_173136"
contractId="ctr_1-1TJZFB"
groupId="grp_15225"

egcurl --eg-section default --request POST \
  --url "https://$hostname/papi/v1/includes/$includeId/activations?contractId=$contractId&groupId=$groupId" \
  --header "Accept: application/json"
  --header "PAPI-Use-Prefixes: true"
 \
  --header "Content-Type: application/json" \
  --data '
{
    "acknowledgeAllWarnings": false,
    "acknowledgeWarnings": [
        "msg_baa4560881774a45b5fd25f5b1eab021d7c40b4f"
    ],
    "activationType": "ACTIVATE",
    "ignoreHttpErrors": true,
    "notifyEmails": [
        "you@example.com",
        "them@example.com"
    ],
    "includeVersion": 1,
    "network": "STAGING",
    "note": "Sample activation"
}'
```

```python Python
import requests
import json
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urllib.parse import urljoin

edgerc = EdgeRc('~/.edgerc.txt')
section = 'default'
baseurl = 'https://%s' % edgerc.get(section, 'host')

session = requests.Session()
session.auth = EdgeGridAuth.from_edgerc(edgerc, section)
includeId = "inc_173136"
 

path = '/papi/v1/includes/{}/activations'.format(includeId)
headers = {
  "Content-Type": "application/json",

  "Accept": "application/json",
  "PAPI-Use-Prefixes": "true"
}
payload = {
    "acknowledgeAllWarnings": false,
    "acknowledgeWarnings": [
        "msg_baa4560881774a45b5fd25f5b1eab021d7c40b4f"
    ],
    "activationType": "ACTIVATE",
    "ignoreHttpErrors": true,
    "notifyEmails": [
        "you@example.com",
        "them@example.com"
    ],
    "includeVersion": 1,
    "network": "STAGING",
    "note": "Sample activation"
} 
querystring = {
  "contractId": "ctr_1-1TJZFB",
  "groupId": "grp_15225"
}  

result = session.post(urljoin(baseurl, path), headers=headers, json=payload, params=querystring)
print(result.status_code)
print(json.dumps(result.json(), indent=2)) 
```

```node Node
const EdgeGrid = require("akamai-edgegrid");
const os = require("os");
const edgercPath = os.homedir + "/.edgerc.txt";
const edgercSection = "default";
const eg = new EdgeGrid({
  path: edgercPath,
  section: edgercSection,
});

const includeId = "inc_173136";

eg.auth({
  path: `/papi/v1/includes/${includeId}/activations`,
  method: "POST",
  headers: {
    "Content-Type": "application/json",

    Accept: "application/json",
    "PAPI-Use-Prefixes": "true",
  },
  body: {
    acknowledgeAllWarnings: false,
    acknowledgeWarnings: ["msg_baa4560881774a45b5fd25f5b1eab021d7c40b4f"],
    activationType: "ACTIVATE",
    ignoreHttpErrors: true,
    notifyEmails: ["you@example.com", "them@example.com"],
    includeVersion: 1,
    network: "STAGING",
    note: "Sample activation",
  },
  qs: {
    contractId: "ctr_1-1TJZFB",
    groupId: "grp_15225",
  },
});
eg.send(function (error, response, body) {
  console.log(JSON.stringify(JSON.parse(body), null, 2));
});
```

```json Response Example
{
  "includeActivationLink": "/papi/v0/includes/inc_173136/activations/93797ec9-4381-4553-b400-a4de28ab54ab?contractId=ctr_1-1TJZFB&groupId=grp_15225"
}


```

# Set up authentication

<!-- curl@5 -->

If you haven't already, you need to [create your authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials) in an API client in Control Center. Set up the API client with:

* Access to the Property Manager API (PAPI).
* PAPI's access level set to READ-WRITE.

Then, you can include this code to apply the token values to validate your requests.

# Form the request URL

<!-- curl@6 -->

Specify the target endpoint.

# Set your headers

<!-- curl@7-10 -->

Include these headers:

* `Accept: application/json`
* `Content-Type: application/json`
* `PAPI-Use-Prefixes`. This sets whether to represent ID prefixes in response data. Set to `false` when exchanging PAPI data with other APIs. Set it to `true` here because we're working in PAPI.

# Set your query string parameters

<!-- curl@1-3 -->

This request requires the `includeId` query string parameter. Optionally, you can also define `contractId` and `groupId`. If you need these values, run [list properties](https://techdocs.akamai.com/property-mgr/reference/get-properties), [list contracts](https://techdocs.akamai.com/property-mgr/reference/get-contracts) and [list groups](https://techdocs.akamai.com/property-mgr/reference/get-groups).

# Specify include version

<!-- curl@23 -->

Specify the include version that you want to activate or deactivate.

# Specify network

<!-- curl@24 -->

Specify whether you want to create a new activation or deactivation on `STAGING` or `PRODUCTION`.

# Add a note

<!-- curl@25 -->

Optionally you can add a note with a short description of the activation.

# Specify e-mails to notify

<!-- curl@19-22 -->

Enter the e-mail addresses that you want to notify about the activation or deactivation.

# Specify warnings to acknowledge

<!-- curl@13-16 -->

Specify warnings to acknowledge when POSTing the activation.

# Call the API

<!-- curl@1-100 -->

Call POST on the request URL, providing the body request object.

# View the response



The response object displays the `activationLink`to the newly created activation.