You are here

function MCAPI::listInterestGroupUpdate in Mailchimp 6.2

Same name and namespace in other branches
  1. 7 MCAPI.class.php \MCAPI::listInterestGroupUpdate()

<strong>DEPRECATED:</strong> Change the name of an Interest Group

Related

Parameters

string $id the list id to connect to. Get by calling lists():

string $old_name the interest group name to be changed:

string $new_name the new interest group name to be set:

int optional $grouping_id The grouping to delete the group from - get using listInterestGrouping() . If not supplied, the first grouping on the list is used.:

Return value

bool true if the request succeeds, otherwise an error will be thrown

Deprecated

See listInterestGroupingUpdate() for replacement

File

./MCAPI.class.php, line 1199

Class

MCAPI

Code

function listInterestGroupUpdate($id, $old_name, $new_name, $grouping_id = NULL) {
  $params = array();
  $params["id"] = $id;
  $params["old_name"] = $old_name;
  $params["new_name"] = $new_name;
  $params["grouping_id"] = $grouping_id;
  return $this
    ->callServer("listInterestGroupUpdate", $params);
}