---
title: "Restart a managed computer"
method: POST
path: "/api/v0/computers/{computerId}/restart"
tags: ["Computers"]
---

# Restart a managed computer

`POST /api/v0/computers/{computerId}/restart`

Defaults to resume: resumes an offline computer and leaves a live daemon untouched (wasRestarted: false). Explicit reboot cold-boots from persisted files, stops all processes, and discards memory and unflushed writes. Reboot returns HTTP 200 only after the daemon reconnects. Unsupported provider modes are rejected. Not supported for BYOM computers. Errors use non-2xx HTTP status codes with status, title, and detail fields.

## Path parameters

- `computerId` string, required — Computer ID

## Request body

- RestartComputerRequestBody
  - `mode` 'resume' | 'reboot'

## Response `200`

Response for status 200

- RestartComputer200ResponseBody
  - `wasRestarted` boolean, required — False if resume found a live daemon; true if the computer was resumed or rebooted.

## Other responses

- `400` — Response for status 400
- `401` — Response for status 401
- `402` — Response for status 402
- `403` — Response for status 403
- `404` — Response for status 404
- `409` — Response for status 409
- `429` — Response for status 429
- `500` — Response for status 500
- `503` — Response for status 503

## Changes

- **2026-09-18** `15889611fbe2` — 4 info
  - added optional request body
  - added the non-success response with the status `409`
  - added the non-success response with the status `429`
  - added the non-success response with the status `503`
- **2026-07-26** `749e76236673` — 1 info
  - added the required property `wasRestarted` to the response with the `200` status

[Change history](https://skmtc.dev/factory/apis/factory-public-api/changes/api/v0/computers/:computerId/restart/post.md)

---

[API](https://skmtc.dev/factory/apis/factory-public-api.md) · [All operations](https://skmtc.dev/factory/apis/factory-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/factory/apis/factory-public-api/revisions/15b96fd835f6?raw)
