class RecombeeApiClient::AddItem
Adds new item of the given ‘itemId` to the items catalog.
All the item properties for the newly created items are set to null.
Attributes
Public Class Methods
Source
# File lib/recombee_api_client/api/add_item.rb, line 23 def initialize(item_id) @item_id = item_id @timeout = 3000 @ensure_https = false end
-
*Required arguments*
-
item_id
-> ID of the item to be created.
-
Public Instance Methods
Source
# File lib/recombee_api_client/api/add_item.rb, line 35 def body_parameters p = Hash.new p end
Values of body parameters as a Hash
Source
# File lib/recombee_api_client/api/add_item.rb, line 30 def method :put end
HTTP method
Source
# File lib/recombee_api_client/api/add_item.rb, line 48 def path "/{databaseId}/items/#{@item_id}" end
Relative path to the endpoint
Source
# File lib/recombee_api_client/api/add_item.rb, line 42 def query_parameters params = {} params end
Values of query parameters as a Hash. name of parameter => value of the parameter