def update(contact)
      validate_type!(contact)
      params = extract_params!(contact, :id)
      id = params[:id]

      attributes = sanitize(contact)
      _, _, root = @client.put("/contacts/#{id}", attributes)

      Contact.new(root[:data])
    end
def update(contact)
      validate_type!(contact)
      params = extract_params!(contact, :id)
      id = params[:id]

      attributes = sanitize(contact)
      _, _, root = @client.put("/contacts/#{id}", attributes)

      Contact.new(root[:data])
    end
Update a contact

 put '/contacts/{id}'

 Updates contact information
 If the specified contact does not exist, the request will return an error
 **Notice** When updating contact tags, you need to provide all tags
 Any missing tag will be removed from a contact's tags

 @param contact [Contact, Hash] Either object of the Contact type or Hash. This object's attributes describe the object to be updated.
 @return [Contact] The resulting object represting updated resource.