Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors

Modify an Existing Resource Record

PUT /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\”}”