---
title: "Update"
method: PATCH
path: "/auth/me/devices/{id}"
tags: ["devices"]
---

# Update

`PATCH /auth/me/devices/{id}`

## Request

- Base URL: `https://api.instruxi.dev/api/v1/enforcer`
- URL: `https://api.instruxi.dev/api/v1/enforcer/auth/me/devices/{id}`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Rename a device (device_name) or change its status independently; either field may be omitted.

## Path parameters

- `id` string, required

## Request body

- InternalDeliveryHttpHandlerUpdateDeviceRequest
  - `device_name` string
  - `status` string

## Response `200`

OK

- InternalDeliveryHttpHandlerDeviceResponse
  - `data` EnforcerV3InternalDomainDevicePersonDevice
    - `app_identifier` string
    - `app_version` string
    - `created_at` string
    - `device_id` string
    - `device_name` string
    - `device_type` EnforcerV3InternalDomainDeviceDeviceType
      - `code` string
      - `created_at` string
      - `display_name` string
      - `id` string
      - `updated_at` string
    - `device_type_id` string
    - `id` string
    - `key_algorithm` string
    - `last_seen_at` string
    - `metadata` object
    - `os_name` string
    - `os_version` string
    - `person_id` string
    - `public_key` string: PublicKey is the base64 Ed25519 key the device signs check-ins with, trusted on first registration (TOFU). KeyAlgorithm names the scheme.
    - `push_token` string
    - `status` string
    - `updated_at` string
  - `success` boolean

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `404`: Not Found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/instruxi/apis/enforcer-api.md) · [All operations](https://skmtc.dev/instruxi/apis/enforcer-api/llms.txt) · [OpenAPI document](https://skmtc.dev/instruxi/apis/enforcer-api/revisions/fa82bc1becc0?raw)
