GET returns record PUT and PATCH both return 81044

I have set up an API and am able to create and list records in my zone, however when I try to update a record, I get 81044 The record does not exist.

Any ideas why?

Probably because the record does not esist?

When I send a GET request it returns the record. So it’s definitely in existence. I feel like my api call must not be formed correctly. Is this correct?

curl -X PUT "https://api.cloudflare.com/client/v4/zones/ZONE_ID/dns_records/ID" \
 -H "X-Auth-Email: EMAIL" \
 -H "X-Auth-Key: TOKEN" \
 -H "Content-Type: application/json" \
 --data '{"type":"A","name":"test.example.com","content":"127.0.0.1","ttl":1,"proxied":false}'

It seems correct… the only error could be the record or the zone identifier

AH… I had the Identifier at the end of the URL wrong. I had entered the Account ID from the overview page. I did not realize that each record had a unique identifier until I examined the returned data from listing all records. I guess the record I was looking for really didn’t exist, huh??? :stuck_out_tongue_winking_eye:

Thanks for your help!

1 Like

I guess I was right :rofl: