Guys, please, spare my sanity. I'm trying to run a curl command with atlassian/ssh-run:0.8.1 as follows to no avail:
curl --request POST --url https://api.cloudflare.com/client/v4/zones/$CLOUDFLARE_ZONE/purge_cache --header "Content-Type: application/json" --header "X-Auth-Key: $CLOUDFLARE_APIKEY" --header "X-Auth-Email: $CLOUDFLARE_EMAIL" --data "{"purge_everything": true}"The request fails with the message from the endpoint saying that "Request must contain one of "purge_everything". Obviously, it has to do something with escaping the quotes in the JSON that is being sent.
I tried it all: backslashes, single quotes, double and tripple single and double quotes — nothing seems to work.
Please, tell me how to send JSON with curl through atlassian/ssh-run:0.8.1