recombee_api_client.api_requests.update_more_items module

class recombee_api_client.api_requests.update_more_items.UpdateMoreItems(filter: str, changes: dict)

Bases: recombee_api_client.api_requests.request.Request

Update (some) property values of all the items that pass the filter.

Example: Setting all the items that are older than a week as unavailable

```
{

“filter”: “‘releaseDate’ < now() - 7*24*3600”, “changes”: {“available”: false}

}

```

Required parameters:

Parameters
  • filter – A [ReQL](https://docs.recombee.com/reql.html) expression, which return true for the items that shall be updated.

  • changes – A dictionary where the keys are properties which shall be updated.

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).