public function update($id, $params = array()) {
        $this->checkPermissions('update');
        
        return $this->client->updateData($this->resourceName . '/' . $id, $params);
    }
public function update($id, $params = array()) {
        $this->checkPermissions('update');
        
        return $this->client->updateData($this->resourceName . '/' . $id, $params);
    }
public function update ( $ id , $ params = array ( ) ) { $ this -> checkPermissions ( 'update' ) ; return $ this -> client -> updateData ( $ this -> resourceName . '/' . $ id , $ params ) ; }
Update model object

@param mixed $id Object id
@param array $params Object parameters
@return array
Update model object