DNS records are not updated, deleted, or added, even though I get a positive result

For Workers & Pages, what is the name of the domain?

curl “https://api.cloudflare.com/client/v4/zones/************/dns_records/************” -X “GET”

What is the issue or error you’re encountering

success is true but NOT true

What steps have you taken to resolve the issue?

Hello!

I read the instructions here:

Everything is clear, BUT, after I make requests such as: Create DNS Record, Update DNS Record, Delete DNS Record.
I get a positive response from the server - “success”:true - to my “Update DNS Record” request.
For example,
{“result”:{“id”:“1f******”,“name”:“cpanel.*.”,“type”:“A”,“content”:“1.2.3.4”,“proxiable”:true,“proxied”:false,“ttl”:1,“settings”:{},“meta”:{},“comment”:null,“tags”:,“created_on”:“2017-02-28T20:17:34.81795Z”,“modified_on”:“2017-06-28T20:17:34.81795Z”},“success”:true,“errors”:,“messages”:}

BUT these records are not updated, deleted, or added, even though I get a positive result.

What’s the matter? Please tell me.

Sincerely,
Pavel

You are sending a GET request. You will need to send POST, PATCH or DELETE depending on if you are creating, updating or deleting records.

1 Like