You are here

function MCAPI::listMergeVarUpdate in Mailchimp 7

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

Update most parameters for a merge tag on a given list. You cannot currently change the merge type

Related

Parameters

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

string $tag The merge tag to update:

array $options The options to change for a merge var. See listMergeVarAdd() for valid options:

Return value

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

File

./MCAPI.class.php, line 982

Class

MCAPI

Code

function listMergeVarUpdate($id, $tag, $options) {
  $params = array();
  $params["id"] = $id;
  $params["tag"] = $tag;
  $params["options"] = $options;
  return $this
    ->callServer("listMergeVarUpdate", $params);
}