Cant add new filter using curl

I cant add create filter using curl

condition data:
$codition = ’
{
“glue”:“and”,
“conditions”:[
{
“glue”:“and”,
“conditions”: [
{
“object”:"’.$object.’",
“field_id”:"’.$field_id.’",
“operator”:"’.$operator.’",
“value”:"’.$value.’"
}
]
}
]
}

PHP CURL
$data = array(
‘name’ => $name,
‘type’ => $type,
‘conditions’ => $codition,

        );
        
        
        $ch = curl_init();    

        curl_setopt($ch, CURLOPT_URL,$url);                                                                  
        curl_setopt($ch, CURLOPT_CUSTOMREQUEST,"POST");
        curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($data));                                                                   
        curl_setopt($ch, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
        curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
        curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
        curl_setopt($ch, CURLOPT_HTTPHEADER, array(
            'Authorization: Bearer '.$access_token
        ));

Hi,
You might find the following wiki useful

Feel free to create a new topic if you still face challenges.