Package recombee_api_client :: Package api_requests :: Module set_item_values :: Class SetItemValues
[hide private]
[frames] | no frames]

Class SetItemValues

source code

      object --+        
 request.Request --+    
set_values.SetValues --+

Set/update (some) property values of a given item. The properties (columns) must be previously created by [Add item property](

Instance Methods [hide private]
__init__(self, item_id, values, cascade_create=None)
Required parameters:
source code

Inherited from set_values.SetValues: get_body_parameters, get_query_parameters

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]

Inherited from request.Request: quote_path_param

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, item_id, values, cascade_create=None)

source code 

Required parameters:

  • item_id - ID of the item which will be modified.
  • values - The values for the individual properties.




    "product_description": "4K TV with 3D feature",

    "categories": ["Electronics", "Televisions"],

    "price_usd": 342,



    Optional parameters:

  • cascade_create - Sets whether the given item should be created if not present in the database.
Overrides: object.__init__