---
title: "Unlink device from member"
method: PATCH
path: "/v1/people/{id}/unlink-device"
tags: ["People"]
---

# Unlink device from member

`PATCH /v1/people/{id}/unlink-device`

Resets the fleetDmLabelId for a member, effectively unlinking their device from FleetDM. This will disconnect the device from the organization.

## Path parameters

- `id` string, required

## Response `200`

Member updated successfully

- PeopleResponseDto
  - `id` string, required — Member ID
  - `organizationId` string, required — Organization ID this member belongs to
  - `userId` string, required — User ID associated with member
  - `role` string, required — Member role
  - `createdAt` string, date-time, required — When the member was created
  - `department` string, required — Member department. May be one of the built-in values (none, admin, gov, hr, it, itsm, qms) or a custom department name.
  - `jobTitle` object, nullable, required — Job title for the member
  - `isActive` boolean, required — Whether member is active
  - `deactivated` boolean, required — Whether member is deactivated
  - `fleetDmLabelId` object, nullable, required — FleetDM label ID for member devices
  - `user` UserResponseDto, required
    - `id` string, required — User ID
    - `name` string, required — User name
    - `email` string, required — User email
    - `emailVerified` boolean, required — Whether email is verified
    - `image` object, nullable, required — User profile image URL
    - `createdAt` string, date-time, required — When the user was created
    - `updatedAt` string, date-time, required — When the user was last updated
    - `lastLogin` object, nullable, required — Last login time
    - `role` object, nullable, required — Platform role of the user (managed by Better Auth admin plugin)
  - `backgroundCheckRequests` BackgroundCheckSummaryDto[] — Background check requests for this member
    - `id` string, required — Background check request ID
    - `status` 'invited' | 'in_progress' | 'in_review' | 'completed' | 'completed_with_flags' | 'failed' | 'cancelled', required — Background check status

## Other responses

- `400` — Bad Request - Invalid update data or user conflict
- `401` — Unauthorized - Invalid authentication or insufficient permissions
- `404` — Organization, member, or user not found
- `500` — Internal server error

## Changes

- **2026-06-05** `33c685841b7a` — 7 info
  - removed the `admin` enum value from the `department` response property for the response status `200`
  - removed the `gov` enum value from the `department` response property for the response status `200`
  - removed the `hr` enum value from the `department` response property for the response status `200`
  - removed the `it` enum value from the `department` response property for the response status `200`
  - …3 more
- **2026-06-05** `7ca7c363a732` — 7 warning
  - added the new `admin` enum value to the `department` response property for the response status `200`
  - added the new `gov` enum value to the `department` response property for the response status `200`
  - added the new `hr` enum value to the `department` response property for the response status `200`
  - added the new `it` enum value to the `department` response property for the response status `200`
  - …3 more
- **2026-06-05** `d0f58f24175b` — 7 info
  - removed the `admin` enum value from the `department` response property for the response status `200`
  - removed the `gov` enum value from the `department` response property for the response status `200`
  - removed the `hr` enum value from the `department` response property for the response status `200`
  - removed the `it` enum value from the `department` response property for the response status `200`
  - …3 more
- …earlier changes not shown

[Full history](https://skmtc.dev/trycompai/apis/comp-ai-api/changes/v1/people/:id/unlink-device/patch.md)

---

[API](https://skmtc.dev/trycompai/apis/comp-ai-api.md) · [All operations](https://skmtc.dev/trycompai/apis/comp-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/trycompai/comp-ai-api/revisions/726b9523fb22/schema)
