public function updateInterestGrouping($name, $value, $group_id = false)
    {

        $payload = array(
            'grouping_id' => (FALSE === $group_id) ? $this->grouping_id : $group_id,
            'name' => $name,
            'value' => $value
        );

        $apiCall = 'lists/interest-grouping-update';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return true;
    }
public function updateInterestGrouping($name, $value, $group_id = false)
    {

        $payload = array(
            'grouping_id' => (FALSE === $group_id) ? $this->grouping_id : $group_id,
            'name' => $name,
            'value' => $value
        );

        $apiCall = 'lists/interest-grouping-update';
        $data = $this->requestMonkey($apiCall, $payload);
        $data = json_decode($data, true);
        if (isset($data['error']))
            throw new MailchimpAPIException($data);
        else
            return true;
    }
public function updateInterestGrouping ( $ name , $ value , $ group_id = false ) { $ payload = array ( 'grouping_id' => ( FALSE === $ group_id ) ? $ this -> grouping_id : $ group_id , 'name' => $ name , 'value' => $ value ) ; $ apiCall = 'lists/interest-grouping-update' ; $ data = $ this -> requestMonkey ( $ apiCall , $ payload ) ; $ data = json_decode ( $ data , true ) ; if ( isset ( $ data [ 'error' ] ) ) throw new MailchimpAPIException ( $ data ) ; else return true ; }
Update an existing Interest Grouping

@link http://apidocs.mailchimp.com/api/2.0/lists/interest-grouping-update.php
@param string $name The name of the field to update - either "name" or "type". Groups within the grouping should be manipulated using the standard listInterestGroup* methods
@param string $value The new value of the field. Grouping names must be unique - only "hidden" and "checkboxes" grouping types can be converted between each other.
@param int $group_id optional unless not has been set before
@return boolean true on success
@throws MailchimpAPIException
Update an existing Interest Grouping