---
updatedAt: 2026-03-01T18:03:13.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/onboard/llms.txt
---

# PAPI: Activate on production

```curl cURL
propertyId="prp_6IJKL7"
contractId="ctr_1-2ABCD3"
groupId="grp_12345"
hostname={hostname}

egcurl --eg-section default --request POST \

  --url "https://$hostname/papi/v1/properties/$propertyId/activations?contractId=$contractId&groupId=$groupId" \
  --header "Accept: application/json"
  --header "PAPI-Use-Prefixes: true"
 \
  --header "Content-Type: application/json" \
  --data '
{
    "propertyVersion": 1,
    "network": "PRODUCTION",
    "note": "Activate v1 to go live",
    "notifyEmails": [
        "john@docsassociates.com",
        "jane@docsassociates.com"
    ],
    "fastPush": true,
    "acknowledgeAllWarnings": true
}'
```

```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 propertyId = "prp_6IJKL7";

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

    "Accept": "application/json",
    "PAPI-Use-Prefixes": "true"},
  body: {
    "propertyVersion": 1,
    "network": "PRODUCTION",
    "note": "Activate v1 to go live",
    "notifyEmails": [
        "john@docsassociates.com",
        "jane@docsassociates.com"
    ],
    "fastPush": true,
    "acknowledgeAllWarnings": true
},
  qs: {
    "contractId": "ctr_1-2ABCD3",
    "groupId": "grp_12345"
}                    
});
eg.send(function(error, response, body) {
  console.log(body);    
});
```

```python Python
import requests
from akamai.edgegrid import EdgeGridAuth, EdgeRc
from urlparse 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)
propertyId = "prp_6IJKL7"
 

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

  "Accept": "application/json",
  "PAPI-Use-Prefixes": "true"
}
payload = {
    "propertyVersion": 1,
    "network": "PRODUCTION",
    "note": "Activate v1 to go live",
    "notifyEmails": [
        "john@docsassociates.com",
        "jane@docsassociates.com"
    ],
    "fastPush": true,
    "acknowledgeAllWarnings": true
} 
querystring = {
  "contractId": "ctr_1-2ABCD3",
  "groupId": "grp_12345"
}  

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

```json Response Example
{
    "activationLink": "/papi/v1/properties/prp_6IJKL7/activations/atv_43210?contractId=ctr_1-2ABCD3&groupId=grp_12345"
}
```

# Set up authentication

<!-- curl@4-6 -->
<!-- node@1-8 -->
<!-- python@1-10 -->

If you haven't already, you need to [create your authentication credentials](https://techdocs.akamai.com/onboard/docs/set-up-identity-and-access-api#4-set-up-authentication-credentials) in an API client in Control Center. Once you have, include this code to apply the token values to authenticate your requests.

**Note**: If you're using cURL, the host value from your authentication credential serves as the {hostname} variable value.

# Form the request URL

<!-- curl@8 -->
<!-- node@13 -->
<!-- python@14 -->

Specify the target endpoint.

# Set your headers

<!-- curl@9-12 -->
<!-- node@15-19 -->
<!-- python@15-20 -->

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.

# Specify property ID

<!-- curl@1 -->
<!-- node@10 -->
<!-- python@11 -->

This is the `propertyId` that ​Akamai​ assigned to your Ion property. If you didn't store this value after creating the property, you can [list your properties](https://techdocs.akamai.com/onboard/docs/test-and-go-live-api#get-your-id-values) to get it.

# Build your body component

<!-- curl@13-24 -->
<!-- node@20-30 -->
<!-- python@21-31 -->

Include a POST object and define the following values:

* `propertyVersion`. We're working with version `1` of your Ion property in this workflow.

* `network`. Set this to `PRODUCTION` to push your Ion property to the production network to go live with your site.

* `note`. You can optionally include a note for the activation.

* `notifyEmails`. Include an array of one or more emails that will be alerted when the activation completes.

* `fastPush`. Set this to `true` to enable ​Akamai​'s fast activation feature to speed up activation.

* `acknowledgeAllWarnings`. Set this to `true` for this operation. This will bypass any potential issues that may stop the activation. If you followed the instructions in [Set up your property](https://techdocs.akamai.com/onboard/docs/set-up-your-property-api), you shouldn't encounter any breaking errors that would prevent the activation. (You should only see informational warnings.)

# Set your query string parameters

<!-- curl@2-3 -->
<!-- node@31-34 -->
<!-- python@32-35 -->

As part of this workflow, you should have already [gathered the IDs](https://techdocs.akamai.com/onboard/docs/test-and-go-live-api#get-your-id-values) for your contract and primary group. Include them as the `contractId` and `groupId` query string parameters.

# Call the API

<!-- curl@1-1000 -->
<!-- node@1-1000 -->
<!-- python@1-1000 -->

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

# Review the response

<!-- curl@0 -->
<!-- node@0 -->
<!-- python@0 -->

The response object lists the `activationLink`. You can store the `atv_###` value that precedes the query string**. This is the unique `activationId` for your Ion property's production activation and it's used in other PAPI operations.