Closed jbtheard closed 2 years ago
Hi @jbtheard,
The users are automatically created from the sent interactions.
But I want to be able to make a recommendation event before user has first interacted with any content! in such case request would throw because of user not existing. How am I supposed to do that ?
I may be the first one to state it but this API methods indeed has some interest !
But I want to be able to make a recommendation event before user has first interacted with any content! in such case request would throw because of user not existing. How am I supposed to do that ?
Same as with the interactions, the user gets created on the first recommendation request with the given userId
(because cascadeCreate=true
by default in the JS client).
oh ok! I'll check that. Thanks for the quick answer.
oh that's actually because I do that first call on the backend...
I'll add cascadeCreate=true on the backend and that should be fixed
How can we add a user as per https://docs.recombee.com/api.html#users ?