---
title: "Rollback device configuration to a previous version"
method: POST
path: "/api/device-registry/{id}/config/rollback/{version}"
tags: ["devices"]
---

# Rollback device configuration to a previous version

`POST /api/device-registry/{id}/config/rollback/{version}`

Creates a new config version with the YAML content from the specified version.

## Path parameters

- `id` integer, required
- `version` integer, required

## Response `201`

Created

- ApiDeviceConfigVersionResponse
  - `comment` string
  - `created_at` string
  - `version` integer
  - `yaml` string

## Other responses

- `400` — invalid ID or version
- `404` — device or version not found

---

[API](https://skmtc.net/cubeos-app/apis/meshsat-api.md) · [All operations](https://skmtc.net/cubeos-app/apis/meshsat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cubeos-app/meshsat-api/versions/c019b6af96ea/schema)
