updateUser

suspend fun updateUser(user: ExistingUser): Result<User>

This function updates an existing user in the api. This can be done to update any existing data other than terms of service acceptance.

Note that this should be done before a new scan to make sure all data (e.g. weight) is up to date.

Parameters

ExistingUser

user - An object representing the data of a new user to register