PATCH dns record via cmd

I am trying to use the api to update a DNS record:

This command works fine in Linux and in Git Bash:
curl -X PATCH "https://api.cloudflare.com/client/v4/zones/x/dns_records/x" -H "Authorization: Bearer x" -H "Content-Type: application/json" --data -{"type":"A","name":"x","content":"127.0.0.1","ttl":3600,"proxied":false}'
(blanked out a few things with an x)

but Windows cmd REFUSES to run this:
{“result”:null,“success”:false,“errors”:[{“code”:9207,“message”:“Content-type must be application/json.”}],“messages”:}

Any idea what I am doing wrong?

Before your { replace the - with a ’

1 Like

somehow I replaced that character while making this post, changing it does not solve my issue unfortunately