Skip to content

Instantly share code, notes, and snippets.

@hurelhuyag
Created August 13, 2020 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hurelhuyag/e44e303716922be68441d59696cfa3a5 to your computer and use it in GitHub Desktop.
Save hurelhuyag/e44e303716922be68441d59696cfa3a5 to your computer and use it in GitHub Desktop.
godaddy domain API
PATCH https://api.godaddy.com/v1/domains/{domain}/records
Accept: application/json
Content-Type: application/json
Authorization: sso-key key:secret
[{"data": "{value}", "name": "{subDomain}", "ttl": 600, "type": "TXT"}]
PUT https://api.godaddy.com/v1/domains/{domain}/records/TXT/{subDomain}
Accept: application/json
Content-Type: application/json
Authorization: sso-key key:secret
[{ "data": "I'm messing you", "name": "{subDomain}", "ttl": 600 }]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment