updateData

abstract suspend fun <T : DataPoint> updateData(request: UpdateDataRequest<T>)

Updates a set of data, represented by the request into the Samsung Health app's database.

When updating multiple data, the data update process handles each one sequentially. If one data update fails, none of them are updated.

Only data provided by the app can be updated. For example, if the data is recorded by the Samsung Health app, only the Samsung Health app can update it.

Verify that all properties of data to be updated have been correctly set. Especially those marked as mandatory and ensure their values are within the available range as the data specifications. Otherwise, this function will throw the ERR_INVALID_INPUT.

Since

1.0.0

Parameters

request

An UpdateDataRequest instance including data to update.

Preferences Submitted

You have successfully updated your cookie preferences.