class RecombeeApiClient::UpdateMoreItems
Updates (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} } ```
Attributes
Public Class Methods
Source
# File lib/recombee_api_client/api/update_more_items.rb, line 31 def initialize(filter, changes) @filter = filter @changes = changes @timeout = 100000 @ensure_https = false end
-
*Required arguments*
-
filter
-> A [ReQL](docs.recombee.com/reql.html) expression, which returns ‘true` for the items that shall be updated. -
changes
-> A dictionary where the keys are properties that shall be updated.
-
Public Instance Methods
Source
# File lib/recombee_api_client/api/update_more_items.rb, line 44 def body_parameters p = Hash.new p['filter'] = @filter p['changes'] = @changes p end
Values of body parameters as a Hash
Source
# File lib/recombee_api_client/api/update_more_items.rb, line 39 def method :post end
HTTP method
Source
# File lib/recombee_api_client/api/update_more_items.rb, line 59 def path "/{databaseId}/more-items/" end
Relative path to the endpoint
Source
# File lib/recombee_api_client/api/update_more_items.rb, line 53 def query_parameters params = {} params end
Values of query parameters as a Hash. name of parameter => value of the parameter