API Documentation
Home > Total Uptime APIv2.0 Overview > Cloud DNS Calls > Modify an Existing Resource Record

Modify an Existing Resource Record

Method:              PUT
URI:                    /CloudDNS/Domain/{domainID}/{recordType}/{recordID}

This method modifies an existing resource record. It requires at least one field listed in the Create Domain method plus the TTL value in order to invoke a change, however many records require 3 values.

For example, to update an A record, you must provide the aHostName, aIPAddress, and aTTL values.  To update a CNAME record, cnameName, cnameAliasFor and cnameTTL

Sample CURL for updating an A record

curl -u username:password -X PUT -H “Accept: application/json” “https://api.totaluptime.com/CloudDNS/Domain/{DomainID}/ARecord/{RecordID}” -d “{\”aHostName\”:\”www\”,\”aIPAddress\”:\”203.0.113.2\”,\”aTTL\”:\”60\”}”

Sample CURL for updating a CNAME record

curl -u username:password -X PUT -H “Accept: application/json” “https://api.totaluptime.com/CloudDNS/Domain/{DomainID}/CNAMERecord/{RecordID}” -d “{\”cnameAliasFor\”:\”test.example.com\”,\”cnameName\”:\”www\”,\”cnameTTL\”:\”60\”}”