I’m trying to use the API Tokens to update a DNS entry. I’m in return getting a Code 10000 error that “PUT method with API Tokens is not supported by this API”. Is there an endpoint that I can use to update the DNS entry using a Token and not my global Key? The token has appropriate DNS Edit access.
Same here, getting the same error from the PATCH endpoint. GETting the DNS records in a zone works fine with a token, but it’s not terribly useful without the ability to make changes as well.
UPDATE: This was not a cloudflare issue for me. Turns out another part of my script that set the record ID as a variable failed.
I get the error mentioned in the OP if I hit the following endpoint with a token: PUT https://api.cloudflare.com/client/v4/zones/:zoneID/dns_records/ (note missing id paramter), but do not get the error if I hit PUT https://api.cloudflare.com/client/v4/zones/:zoneID/dns_records/:ID with a valid ID.
I rolled my token, input the new token into my script, and it works now. Weird. I’m going to mark this as solved, as it may have just been a temporary issue.