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

Updates source information
If the specified source does not exist, the request will return an error
<figure class="notice">
If you want to update a source, you **must** make sure source's name is unique
</figure>

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