Error 1001 - "method not allowed" when trying to update DNS via API

I am getting error:

“code”: 1001,
“error”: “method_not_allowed”

When attempting to update a DNS record via the API. This is today 2021-09-12 at 22:21 UTC.

This is happening when using curl, syntax is as follows:

curl -s -X PUT "<zone_id>/dns_records/<fqdn>" \
     -H "X-Auth-Email: <email>" \
     -H "X-Auth-Key: <apikey>" \
     -H "Content-Type: application/json" \
     --data '{"type":"A","name":"<fqdn>","content":"<ip_address>","ttl":"1"}'

Am I missing something? This error is not documented in the API under the DNS section.

this should be:


TTL is a number, not a string:


That was it, thank you.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.