---
updatedAt: 2026-03-01T18:45:32.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/edge-dns/llms.txt
---

# Modify a record set for a change list

```curl cURL
zone="example.com"

egcurl --eg-section default --request POST \
  --url "https://$hostname/config-dns/v2/changelists/$zone/recordsets/add-change" \
  --header "Accept: application/json" \
  --header "Content-Type: application/json" \
  --data '
{
    "op": "ADD",
    "name": "ftp.example.com",
    "type": "A",
    "ttl": 100,
    "rdata": [
        "10.0.0.1"
    ]
}'
```

```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 zone = "example.com";

eg.auth({
  path: `/config-dns/v2/changelists/${zone}/recordsets/add-change`,
  method: "POST",
  headers: {
    "Content-Type": "application/json",

    "Accept": "application/json"},
  body: {
    "op": "ADD",
    "name": "ftp.example.com",
    "type": "A",
    "ttl": 100,
    "rdata": [
        "10.0.0.1"
    ]
}                    
});
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)
zone = "example.com"

path= '/config-dns/v2/changelists/{}/recordsets/add-change'.format(zone)
headers = {
  "Content-Type": "application/json",

  "Accept": "application/json"}
payload = {
    "op": "ADD",
    "name": "ftp.example.com",
    "type": "A",
    "ttl": 100,
    "rdata": [
        "10.0.0.1"
    ]
}  

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

# Set up authorization



Before you can this API, you need to [Create authentication credentials](https://techdocs.akamai.com/developer/docs/set-up-authentication-credentials). 
 
Then, you can use these code samples to apply the token values to your requests.

# Fetch the zone name

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

Fetch the `zone` value of the zone that includes the change list you want to modify. Run the [List zones](https://techdocs.akamai.com/edge-dns/reference/get-zones) operation to get it.

# Form the URL

<!-- curl@4 -->
<!-- node@13 -->
<!-- python@13 -->

Inject the `zone` value into the URL template.

# Specify the operation's type

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

Specify what type of modification you want to perform. You can `ADD`, `DELETE`, or `EDIT` a record set.

# Specify the name

<!-- curl@10 -->
<!-- node@21 -->
<!-- python@20 -->

Specify the DNS name of this record.

# Specify the record's type

<!-- curl@11 -->
<!-- node@22 -->
<!-- python@21 -->

Specify the record type you want the record set to use. Run the [List record types](https://techdocs.akamai.com/edge-dns/reference/get-record-set-types) operation to check available values.

# Specify TTL

<!-- curl@12 -->
<!-- node@23 -->
<!-- python@22 -->

Specify the set's TTL. This is the number of seconds that this record should live in a resolver's cache before being refetched. Not used when `PATCH`ing a DELETE operation.

# Specify rdata

<!-- curl@13-15 -->
<!-- node@24-26 -->
<!-- python@23-25 -->

Specify the set's rdata. This is an array of data strings, representing multiple records within a set. The format of the rdata strings are dependent on the type of this record. Not used when `PATCH`ing a DELETE operation.

# Call the API

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

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

# Review the response



The operation responds with the 204 status.