Logo
Akamai APIs API Documentation

Update a proxy

PUT https://{{host}}/config-dns/v2/proxies/:proxyId

Updates the proxy.

 

Body PARAM

Key Datatype Required Description 
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 OK

{ "activationState": "NEW", "authorities": [], "contractId": "C-0N7RAC7", "createdTime": "2024-03-28T20:55:47.890229Z", "healthCheck": { "recordName": "fqdn.com.", "recordType": "MX" }, "id": "4de9ce8e-4182-416c-a7d1-8252023df4d3", "lastModifiedTime": "2024-03-28T20:55:47.890229Z", "name": "F5", "originNameserverZoneTransferTargets": [], "originNameservers": [ { "name": "192.0.2.4" } ] }



Curl
curl -X PUT 'https://undefined/config-dns/v2/proxies/:proxyId?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"contractId":"C-0N7RAC7","healthCheck":{"recordName":"fqdn.com.","recordType":"MX"},"id":"4de9ce8e-4182-416c-a7d1-8252023df4d3","name":"F5","originNameservers":[{"name":"192.0.2.120"}]}'

ENDPOINTS