Open
Description
Description
- It is not possible to clear a user_id value using the Java SDK
- Setting it to
null
does not send the data to the API
- Setting it to
- curl request works as expected and allows it
We support setting user_id to nil (tested it)
I can understand the logic in wanting to remove user_ids from your users which we support.
Evidence
User user = User.find("598bd1ef1f40af9c8d64ceb0");
System.out.println("The user");
System.out.println(user);
user.setUserId(null);
System.out.println("Set user_id to null but before update");
System.out.println(user);
user = User.update(user);
System.out.println("After update");
System.out.println(user);
user = User.find("598bd1ef1f40af9c8d64ceb0");
System.out.println("After update retrieve by ID");
System.out.println(user);
If you run the above code the user id will not change