Logo
Akamai APIs API Documentation

Patch an edge hostname

PATCH https://{{host}}/hapi/v1/dns-zones/:dnsZone/edge-hostnames/:recordName

Selectively modify an edge hostname using JSON patch syntax. This API supports the replace patch operation to make simple changes to the TTL and IP version.

 

Body PARAM

Key Datatype Required Description 
comments
string (Optional) Additional comments to inform `statusUpdateEmail` recipients of the reason for the change.
statusUpdateEmail
string (Optional) Email address that should receive updates on the change request. To specify more than one email address use a single comma-separated set of addresses, or repeat the parameter with each address.
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status





Curl
curl -X PATCH 'https://undefined/hapi/v1/dns-zones/:dnsZone/edge-hostnames/:recordName?comments=&statusUpdateEmail=&accountSwitchKey=' -H 'Content-Type: application/json-patch+json' -H 'Accept: application/json-patch+json' -d '{"0":{"op":"replace","path":"/ttl","value":"500"},"1":{"op":"replace","path":"/ipVersionBehavior","value":"IPV4"}}'

ENDPOINTS