Is it possible to update TXT records between quotation marks?
Currently the script I have updates it but on the panel its shown without quotation marks and it gives warning
"content": "\"hallo\"""content": "hallo" update_response=$(curl -s -X PATCH "https://api.cloudflare.com/client/v4/zones/$ZONE_ID/dns_records/$id" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
--data "{\"type\":\"$type\",\"name\":\"$name\",\"content\":\"\"$content\",\"ttl\":1,\"proxied\":false}")
if [[ "$update_response" == *"\"success\":true"* ]]; then
echo "$name updated successfully."
else
echo "Error updating $name. Response: $update_response"
fi
fi
}curl https://api.cloudflare.com/client/v4/zones/blablabla/dns_records -X POST -H "X-Auth-Key: blablabla" -H "X-Auth-Email: blablabla" -d '{"name": "txt.laudian.de", "type": "TXT", "content": "hallo"}'curl https://api.cloudflare.com/client/v4/zones/blablabla/dns_records -X POST -H "X-Auth-Key: blablabla" -H "X-Auth-Email: blablabla" -d '{"name": "txt.laudian.de", "type": "TXT", "content": "\"hallo\""}'