def modify_product(self, product_id, name=None, description=None, attributes={}):
        '''
        modify_product(self, product_id, name=None, description=None, attributes={})

        Modify an existing product

        :Parameters:
        * *product_id* (`string`) -- identifier of an existing product
        * *name* (`string`) -- name of the product
        * *description* (`string`) -- product description
        * *attributes* (`object`) -- product attributes to modify

        '''
        request_data = {'id': product_id}
        if name: request_data['name']=name
        if description: request_data['description']=description
        if attributes: request_data['attributes']=attributes
        return self._call_rest_api('post', '/products', data=request_data, error='Failed to modify a new product')
modify_product(self, product_id, name=None, description=None, attributes={})

        Modify an existing product

        :Parameters:
        * *product_id* (`string`) -- identifier of an existing product
        * *name* (`string`) -- name of the product
        * *description* (`string`) -- product description
        * *attributes* (`object`) -- product attributes to modify