im trying to redirect my url but i get this error (Malformed JSON in request body)
My cooding look like this…
curl --request POST \
--url https://api.cloudflare.com/client/v4/zones/3fc2442b82b90e7794c3/pagerules \
--header "Content-Type: application/json" \
--header "X-Auth-Email: [email protected]" \
--header "X-Auth-Key:7acc900a1478f1ca40d2a220b" \
--data "{
"actions": [
{
"targets": [
{
"target": "url",
"constraint": {
"operator": "matches",
"value": "adspro.me/*"
}
}
],
"actions": [
{
"id": "forwarding_url",
"value": {
"url": "https://google.com/",
"status_code": 301
}
}
],
"status": "active"
}"```
and this my error looks
{
“success”: false,
“errors”: [{
“code”: 6007,
“message”: “Malformed JSON in request body”
}],
“messages”: ,
“result”: null
}
anyone can help me to do right?