class RecombeeApiClient::SetUserValues
Set/update (some) property values of a given user. The properties (columns) must be previously created by [Add user property](docs.recombee.com/api.html#add-user-property).
Attributes
Public Class Methods
Source
# File lib/recombee_api_client/api/set_user_values.rb, line 30 def initialize(user_id, values, optional = {}) super(values, optional) @user_id = user_id @timeout = 1000 @ensure_https = false end
* *Required arguments* - +user_id+ -> ID of the user which will be modified. - +values+ -> The values for the individual properties.
Example of body: “‘
{ "country": "US", "sex": "F", }
“‘
* *Optional arguments (given as hash optional)* - +cascadeCreate+ -> Sets whether the item should be created if not present in the database.
Calls superclass method
Public Instance Methods
Source
# File lib/recombee_api_client/api/set_user_values.rb, line 38 def path "/{databaseId}/users/#{@user_id}" end
Relative path to the endpoint