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

Updates product information
If the specified product does not exist, the request will return an error
<figure class="notice"><p>In order to modify prices used on a record, you need to supply the entire set
<code>prices</code> are replaced every time they are used in a request
</p></figure>

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