updateData

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

Updates a set of data represented by the request in the Samsung Health database.

When multiple data points are updated, the update process handles them sequentially. If any update fails, none of the data points are updated.

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

Verify that all properties of the data to be updated are correctly set. Especially those marked as mandatory and ensure their values are within the valid ranges defined in the data specifications. Otherwise, this function throws ERR_INVALID_INPUT.

Since

1.0.0

Parameters

request

An UpdateDataRequest including the data to update.

Preferences Submitted

You have successfully updated your cookie preferences.