class RecombeeApiClient::DeleteMoreItems
Delete all the items that pass the filter.
If an item becomes obsolete/no longer available, it is meaningful to **keep it in the catalog** (along with all the interaction data, which are very useful), and **only exclude the item from recommendations**. In such a case, use [ReQL filter](docs.recombee.com/reql.html) instead of deleting the item completely.
Attributes
ensure_https[RW]
filter[R]
timeout[RW]
Public Class Methods
new(filter)
click to toggle source
-
*Required arguments*
-
filter
-> A [ReQL](docs.recombee.com/reql.html) expression, which return `true` for the items that shall be updated.
-
# File lib/recombee_api_client/api/delete_more_items.rb, line 22 def initialize(filter) @filter = filter @timeout = 1000 @ensure_https = false end
Public Instance Methods
body_parameters()
click to toggle source
Values of body parameters as a Hash
# File lib/recombee_api_client/api/delete_more_items.rb, line 34 def body_parameters p = Hash.new p['filter'] = @filter p end
method()
click to toggle source
HTTP method
# File lib/recombee_api_client/api/delete_more_items.rb, line 29 def method :delete end
path()
click to toggle source
Relative path to the endpoint
# File lib/recombee_api_client/api/delete_more_items.rb, line 48 def path "/{databaseId}/more-items/" end
query_parameters()
click to toggle source
Values of query parameters as a Hash. name of parameter => value of the parameter
# File lib/recombee_api_client/api/delete_more_items.rb, line 42 def query_parameters params = {} params end