Disconnect a Connection
Disconnecting Existing Connections
Overview
The disconnectConnection method in the b.well SDK enables the disconnection of existing data connections for a given user. Disconnecting a data connection allows the user's previously retrieved health data to remain, while preventing future retrieval of new health data from the connection.
Method Signature
suspend fun disconnectConnection(connectionId: String): OperationOutcomeconnectionId: The unique identifier of the connection to be removed.OperationOutcome: Represents the outcome of the disconnect operation.
Disconnecting a Connection
To disconnect an existing connection, provide the connectionId of the connection you wish to remove..
Best Practices
- Correct Identification: Ensure that the
connectionIdprovided is accurate to avoid unintentionally disconnecting the wrong connection. - Outcome Verification: Analyze the
OperationOutcometo understand the result of the disconnect operation, ensuring that it was successful or handling any issues that may have arisen.
Updated about 2 months ago
