def update(self, id, *args, **kwargs):
if not args and not kwargs:<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>attributes = args[<NUM_LIT:0>] if args else kwargs<EOL>attributes = dict((k, v) for k, v in attributes.iteritems() if k in self.OPTS_KEYS_TO_PERSIST)<EOL>_, _, contact = self.http_client.put("<STR_LIT>".format(id=id), body=attributes)<EOL>return contact<EOL>
Update a contact

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

:calls: ``put /contacts/{id}``
:param int id: Unique identifier of a Contact.
:param tuple *args: (optional) Single object representing Contact resource which attributes should be updated.
:param dict **kwargs: (optional) Contact attributes to update.
:return: Dictionary that support attriubte-style access and represents updated Contact resource.
:rtype: dict