No longer able to update DNS records via API

hi
stuck with same problem
but in my case, finally i was able to modify DNS through API

problem was in quotes near some parameters
if i do
,\"ttl\":\"1\",\"proxied\":\"$proxied\"
get an error

if i do without quotes - all works fine
here’s working curl request

zone_identifier="****************"
auth_email="[email protected]"
auth_key="**************"
record_identifier="**************"
record_name="sub.domain.com"
content="domain.com"
type="CNAME"
proxied="false"
curl -s -X PATCH  "https://api.cloudflare.com/client/v4/zones/$zone_identifier/dns_records/$record_identifier" \
-H "X-Auth-Email: $auth_email" \
-H "X-Auth-Key: $auth_key" \
-H "Content-Type: application/json" \
--data "{\"id\":\"$zone_identifier\",\"type\":\"$type\",\"name\":\"$record_name\",\"content\":\"$content\",\"ttl\":1,\"proxied\":$proxied}"
1 Like

Modifying or adding a record works. It’s the GET or DELETE that seems to have been shut off

For me GET works but not PUT/PATCH methods.

For me GET method is working but PUT method is not working
This is working for me since 2019‑04 until today it’s not working anymore :confused:
Is Cloudflare change something about API?

1 Like

+1 Same for me.
I used to update A record through curl PUT for roughly one year but receive “Unknown error 1000” starting from 21/01 on. user2527’s suggested approach does not work for me, even leaving out the quotes I receive the error mentioned. Any help is greatly appreciated.

Hi @cloudflake, @tackleza, I suspect it’s the issue we’re seeing with the API that’s affecting you, Cloudflare Dashboard and Cloudflare API service issues. Sorry for the troubles, the team is on it.

Hi,

It’s not resolved.

Blockquote
2020-01-21 19:46:33,706 INFO Updating record: XXX proxied:False id:14c3xxxx…
2020-01-21 19:46:33,941 ERROR Request failed: {
“error”: “Use of this API has been limited to the Cloudflare Dashboard.”

Agreed. Not resolved.

Still not working :frowning:

Still not working. 1:20pm PST

The issue is not resolved. Still getting the same errors.

Please re-open.

Can you let Support know and they can investigate? To contact Cloudflare Customer Support, login & go to https://dash.cloudflare.com/?account=support and select get more help from the bottom of the page.

Edit - Are you seeing 502 errors?

I still can’t update my DNS with the API, I get the following error: “error”: “Use of this API has been limited to the Cloudflare Dashboard.”

1 Like

Thank you, do you have a ticket with Support? If, can you share the ticket number here? Sorry for the issues.

Hi I’m new here. I have no ticket.
I see that there are several with my same situation and they have not been able to update either.
Should I open a ticker for my situation?

Hi @lidemar2004, welcome & sorry for the troubles. If you open a ticket, that’ll help Support know how big the issue is and give them another opportunity to troubleshoot. Alternatively, I’ll update the issue here as I see progress and you can track it here.

To contact Cloudflare Customer Support, login & go to https://dash.cloudflare.com/?account=support and select get more help.

I opened a ticket about this YESTERDAY. Incident Number 1818793

I have had ZERO response from CloudFlare. All i have seen is the pages here that keep saying it is resolved, and it is still not working.

I’m getting 401 errors:

“error”: “Use of this API has been limited to the Cloudflare Dashboard.”

Thank you, I see your ticket and the additional details you added, I’ve cc’d myself and added a link to this conversation.

Hi @msl0000023508, can you try that without the trailing slash /?