recombee_api_client.api_requests.set_values module

class recombee_api_client.api_requests.set_values.SetValues(path: str, values: dict, cascade_create: Optional[bool] = None)

Bases: recombee_api_client.api_requests.request.Request

Set/update (some) property values of an entity.

Required parameters:

Parameters

values – The values for the individual properties.

Example:

```

E{lb}

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

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

“price_usd”: 342,

“!cascadeCreate”: True E{rb} ```

Optional parameters:

Parameters

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

get_body_parameters() → dict

Values of body parameters as a dictionary (name of parameter: value of the parameter).

get_query_parameters() → dict

Values of query parameters as a dictionary (name of parameter: value of the parameter).