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>_, _, lead = self.http_client.put("<STR_LIT>".format(id=id), body=attributes)<EOL>return lead<EOL>
Update a lead

Updates lead information
If the specified lead does not exist, this query returns an error
<figure class="notice">
In order to modify tags, you need to supply the entire set of tags
`tags` are replaced every time they are used in a request
</figure>

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