---
title: "Bootstrap a device with config and the latest artifact"
method: POST
path: "/v1/edge/devices/{id}/bootstrap"
tags: ["Edge Devices"]
---

# Bootstrap a device with config and the latest artifact

`POST /v1/edge/devices/{id}/bootstrap`

## Request

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

Enqueues a config deployment and a deployment of the artifact marked latest. Returns 422 when the device has no facility, no arena, or no release is marked latest.

## Response `202`

Bootstrap deployments recorded

- DeviceDeployment[]
  - `id` integer
  - `device_id` integer
  - `kind` 'config' | 'code'
  - `source` 'bootstrap' | 'manual' | 'automatic'
  - `artifact_name` string, nullable
  - `mender_deployment_id` string, nullable
  - `status` string
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `409`: Device is decommissioned
- `422`: Device is not ready to bootstrap, or no release is marked latest

## Changes

- **2026-11-05** `b5920403538d`: 1 info
  - added the non-success response with the status `409`

[Operation history](https://skmtc.dev/hify/apis/hify-apis/changes/v1/edge/devices/:id/bootstrap/post.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)
