curl -k --request POST --url https://vault:8200/v1/sys/policy/policy-test --header 'Authorization: Bearer <Token>' --header 'Content-Type: application/json' --data '"policy":"{""path\\"" //*\" { \n capabilities = [\"create\",\"read\",\"list\",\"update\"]}}}"'
While trying this command, I am getting this error:
{"errors":["error parsing JSON"]}
Could anyone help with syntax for Vault policy here?