/**
  * Public function that updates a list
  *
  * @param string $listId - valid list ID of the list that needs to be updated
  * @param object $list - valid list object of the new updates to the list
  * @return string $code - success or fail message from the API server
  */
 public function updateList($listId, $list)
 {
     $utility = new CTCTUtility();
     $existingList = $this->getListDetails($listId);
     $listXml = $this->createListXml($existingList->getId(), $list);
     $return = $utility->httpPut($utility->getApiPath() . $existingList->getLink(), $listXml);
     $code = $return['info']['http_code'];
     return $code;
 }