Cloudflare api update target ip

Is it possible to update the IP in firewall using Cloudflare API? Currently i’m just able to update only the Notes field but no the IP. Here is my code.

$cfheaders = array(
‘Content-Type: application/json’,
‘X-Auth-Email: xxxxxxxxx’,
‘X-Auth-Key: xxxxxxxxx’
$data = array(
‘mode’ => ‘challenge’,
‘notes’ => ‘Test Update here here’,
‘configuration’ => array(‘target’ => ‘ip’, ‘value’ => ‘’),
$json = json_encode($data);
$ch = curl_init();
curl_setopt($ch, CURLOPT_POSTFIELDS, $json);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, $cfheaders);
curl_setopt($ch, CURLOPT_URL, ‘’);
$return = curl_exec($ch);
$returns = json_decode($return,true);

Straight from the documentation

Update rule state and/or note for the zone.

You could use firewall rules instead, there you can edit the filter.