recombee_api_client.api_requests.set_item_values module

class recombee_api_client.api_requests.set_item_values.SetItemValues(item_id, values, cascade_create=None)

Bases: recombee_api_client.api_requests.set_values.SetValues

Set/update (some) property values of a given item. The properties (columns) must be previously created by [Add item property](https://docs.recombee.com/api.html#add-item-property).

Required parameters:

Parameters
  • item_id – ID of the item which will be modified.

  • values – The values for the individual properties.

Example:

```

E{lb}

“product_description”: “4K TV with 3D feature”,

“categories”: [“Electronics”, “Televisions”],

“price_usd”: 342,

E{rb}

```

Optional parameters:

Parameters

cascade_create – Sets whether the given item should be created if not present in the database.