---
title: "Update a device"
method: PATCH
path: "/v1/edge/devices/{id}"
tags: ["Edge Devices"]
---

# Update a device

`PATCH /v1/edge/devices/{id}`

## Request

- Base URL: `https://api.hify.club`
- URL: `https://api.hify.club/v1/edge/devices/{id}`
- Auth: API key in header `X-User-Token`

## Request body

- object
  - `device` object, required
    - `facility_id` integer, nullable
    - `status` 'pending' | 'accepted' | 'rejected' | 'preauthorized' | 'noauth'
    - `upload_mode` 'continuous' | 'on_demand': on_demand uploads only footage a game claims. Pushes a new config to the device.
    - `preview_generation_enabled` boolean: Pushes a new config to the device.
    - `archive_disk` boolean: false for an SSD-only Pi with no archive HDD (sent as gateway.archive_enabled). Pushes a new config to the device.

## Response `200`

Device updated

- Device
  - `id` integer
  - `mender_device_id` string, nullable
  - `mac_address` string, nullable
  - `status` 'pending' | 'accepted' | 'rejected' | 'preauthorized' | 'noauth' | 'decommissioned'
  - `facility_id` integer, nullable
  - `mender_attributes` object
  - `upload_mode` 'continuous' | 'on_demand'
  - `preview_generation_enabled` boolean
  - `archive_disk` boolean
  - `decommissioned_at` string, date-time, nullable
  - `arenas` object[]
  - `facility` object, nullable
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `422`: Unprocessable entity

## Changes

- **2026-11-05** `b5920403538d`: 2 breaking, 1 warning, 1 info
  - the response property `mac_address` became nullable for the status `200`
  - the response property `mender_device_id` became nullable for the status `200`
  - added the new `decommissioned` enum value to the `status` response property for the response status `200`
  - added the optional property `decommissioned_at` to the response with the `200` status

[Operation history](https://skmtc.dev/hify/apis/hify-apis/changes/v1/edge/devices/:id/patch.md)

---

[API](https://skmtc.dev/hify/apis/hify-apis.md) - [All operations](https://skmtc.dev/hify/apis/hify-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/hify/apis/hify-apis/revisions/b5920403538d?raw)
