Update an existion Contact by Contact ID
@param  array   $data
@param  integer $id
@return array
762814
public function update(array $data, $id)
    {
        if( !is_integer($id) )
            throw new Exception("ID must be a integer");

        $handle = array('Id'=>$id);

        foreach( $data as $field => $value )
        {
            switch( strtolower($field) )
            {
                case 'name':
                    $this->client
                        ->debtorContact_SetName(array(
                            'debtorContactHandle' => $handle,
                            'value'               => $value
                        ));
                    break;

                case 'email':
                    $this->client
                        ->debtorContact_SetEmail(array(
                            'debtorContactHandle' => $handle,
                            'value'               => $value
                        ));
                    break;

                case 'phone':
                    $this->client
                        ->DebtorContact_SetTelephoneNumber(array(
                            'debtorContactHandle' => $handle,
                            'value'               => $value
                        ));
                    break;

                case 'invoice':
                    $this->client
                        ->debtorContact_SetIsToReceiveEmailCopyOfInvoice(array(
                            'debtorContactHandle' => $handle,
                            'value'               => !!$value
                        ));
                    break;

                case 'order':
                    $this->client
                        ->debtorContact_SetIsToReceiveEmailCopyOfOrder(array(
                            'debtorContactHandle' => $handle,
                            'value'               => !!$value
                        ));
                    break;

                case 'comment':
                    $this->client
                        ->debtorContact_SetComments(array(
                            'debtorContactHandle' => $handle,
                            'value'               => $value
                        ));
                    break;

            }
        }

        return $this->getArrayFromHandles($handle);
    }
675919
public function update($id, $data, array $options = []) {
        return $this->query(Query::UPDATE)
            ->where($this->getPrimaryKey(), $id)
            ->save($data, $options);
    }
539522
public function update(string $id, array $data, array $headers = [])
    {
        $url = $this->url('coupon_sets/%s/update', $id);

        return $this->post($url, $data, $headers);
    }
1176242
public function createContactInList($contactListId, array $data = [])
	{
		return $this->sendRequest(
			$this->createRequest('POST', sprintf('contact_lists/%d/contacts', $contactListId), [], $data)
		);
	}
522022
public function update($id, $data)
    {
        $message = $this->client->put(
            sprintf('buckets/%d/messages/%d.json', $this->bucket, $id),
            [
                'json' => $data,
            ]
        );

        return new Message($this->response($message));
    }
736171
public function updateMultiples($id, $data) {
		// find
		$model = $this->get($id);

		if ($model === null) {
			return new NotFound(['message' => 'Skill not found.']);
		}

		// pass update to internal logic
		try {
			$this->doUpdateMultiples($model, $data);
		} catch (ErrorsException $e) {
			return new NotValid(['errors' => $e->getErrors()]);
		}

		// save and dispatch events
		$this->dispatch(SkillEvent::PRE_MULTIPLES_UPDATE, $model, $data);
		$this->dispatch(SkillEvent::PRE_SAVE, $model, $data);
		$rows = $model->save();
		$this->dispatch(SkillEvent::POST_MULTIPLES_UPDATE, $model, $data);
		$this->dispatch(SkillEvent::POST_SAVE, $model, $data);

		if ($rows > 0) {
			return Updated(['model' => $model]);
		}

		return NotUpdated(['model' => $model]);
	}
308135
public function update($id, $data)
	{
		if (!$data instanceof UnitUpdateTransfer) {
			if (!is_array($data)) {
				throw new InvalidArgumentException('Data argument should be an array of instance of UnitUpdateTransfer');
			}
			$data = UnitUpdateTransfer::make($data);
		}

		$endpoint = new Update($this->getTransport());
		$endpoint->setId($id);
		$endpoint->setTransfer($data);

		try {
			$result = $endpoint->performRequest();
		} catch (ResourceNotFoundException $e) {
			return false;
		}

		return $result['status'] == 204;
	}
726687
public function requestToInterface($data,$id)
    {

        $appointmentInterface = $this->repository->update($id, $data);

        return $appointmentInterface;
    }
63367
public function update($id, $data)
    {
        $response = $this->handler->handle('PUT', $data);

        return $this->make($response, false);
    }
665472
public function update($id, $data)
    {
        $message = $this->client->put(sprintf('templates/%d.json', $id), [
            'json' => $data,
        ]);

        return new Template($this->response($message));
    }
810427
public function update($id, array $data)
    {
        $model = $this->model->find($id);
        $model->fill($data);
        $model->save();

        return $model;
    }
1027013
public function update($owner, $eventId, array $data)
    {
        $data = self::mergeData($data, [
            'owner' => $owner,
            'contactEvent' => [
                'eventId' => $eventId,
            ],
        ]);

        return $this->client->doPost('contact/updateContactExtEvent', $data);
    }
857275
public function update($id, array $data)
    {
        $istance = $this->getById($id);

        if (! $istance)
        {
            return false;
        }

        return $istance->update($data);
    }
826981
public function addContact(string $id, array $data, array $headers = [])
    {
        $url = $this->url('customers/%s/add_contact', $id);

        return $this->post($url, $data, $headers);
    }
268202
public function updateByIntId(array $data, int $id): Model
    {
        $model = $this->byIntIdOrFail($id);

        return $this->updateByModel($model, $data);
    }
464531
public function update($id, array $data)
    {
        $data = $this->resolverFactory->createAppResolver()->resolve($data);

        return $this->api->request('PUT', '/apps/'.$id, [
            'Authorization' => 'Basic '.$this->api->getConfig()->getUserAuthKey(),
        ], json_encode($data));
    }
646406
public function callResult($id, $data = array()) {
        return $this->send(json_encode(array(WAMP::MSG_CALL_RESULT, $id, $data)));
    }