public function Update($segmentName, $newSegmentName = null, $rule = null) {
        return $this->sendRequest('segment/update', array(
                    'segmentName' => $segmentName,
                    'newSegmentName' => $newSegmentName,
                    'rule' => $rule
        ));
    }
public function Update($segmentName, $newSegmentName = null, $rule = null) {
        return $this->sendRequest('segment/update', array(
                    'segmentName' => $segmentName,
                    'newSegmentName' => $newSegmentName,
                    'rule' => $rule
        ));
    }
public function Update ( $ segmentName , $ newSegmentName = null , $ rule = null ) { return $ this -> sendRequest ( 'segment/update' , array ( 'segmentName' => $ segmentName , 'newSegmentName' => $ newSegmentName , 'rule' => $ rule ) ) ; }
Rename or change RULE for your segment
@param string $apikey ApiKey that gives you access to our SMTP and HTTP API's.
@param string $segmentName Name of your segment.
@param string $newSegmentName New name of your segment if you want to change it.
@param string $rule Query used for filtering.
@return \ElasticEmailEnums\Segment
Rename or change RULE for your segment