DELETE
/
user
/
:userId
/
device
Authorization
Path
Query
curl --request DELETE \
  --url https://api.sandbox.metriport.com/user/:userId/device \
  --header 'x-api-key: <x-api-key>'
import { MetriportDevicesApi, ProviderSource } from "@metriport/api-sdk";

const metriportClient = new MetriportDevicesApi("YOUR_API_KEY");

await metriportClient.disconnectDevice(
  "metriportUserId",
  ProviderSource.tenovi,
  deviceId,
  "your_tenovi_api_key",
  "your_tenovi_client_name"
);

Path Params

userId
string
required

The Metriport user ID to disconnect device for.

Query Params

provider
string
required

The device provider you would like to disconnect a device from, i.e. tenovi.

deviceId
string
required

The ID of the device you would like to disconnect.

Response

message
string
required

Feedback on successful device disconnection.

{
  "message": "Device 12345678-abcd-1234-abcd-1234567890ab has been removed for user 66d4f01f-6ebe-44f8-8bbc-15a65adbe8c2."
}