---
title: "Reset a Compute instance to a base/target template"
method: PUT
path: "/instance/{id}:reset"
tags: ["instance"]
---

# Reset a Compute instance to a base/target template

`PUT /instance/{id}:reset`

## Request

- Base URL: `https://api-ch-gva-2.exoscale.com/v2`
- URL: `https://api-ch-gva-2.exoscale.com/v2/instance/{id}:reset`
- Auth: none declared
- TypeScript: <https://skmtc.dev/exoscale/apis/exoscale-api/docs/instance/:id:reset/put.ts> (a function with typed inputs; its response is checked against the schema)

This operation re-installs a Compute instance to a base template. If target template is provided it will be used to recreated instance from. Warning: the operation wipes all data stored on the disk.

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `template` TemplateRef: Template reference
    - `id` string, uuid: Template ID
  - `disk-size` integer: Instance disk size in GiB

## Response `200`

200

- Operation: Operation
  - `id` string, uuid: Operation ID
  - `reason` 'incorrect' | 'unknown' | 'unavailable' | 'forbidden' | 'busy' | 'fault' | 'partial' | 'not-found' | 'interrupted' | 'unsupported' | 'conflict': Operation failure reason
  - `reference` object: Related resource reference
    - `id` string, uuid: Reference ID
    - `link` string: Link to the referenced resource
    - `command` string: Command name
  - `message` string: Operation message
  - `state` 'failure' | 'pending' | 'success' | 'timeout': Operation status

## Changes

- **2026-03-16** `e05707a7b346`: 10 warning, 1 info
  - removed the request property `template/boot-mode`
  - removed the request property `template/checksum`
  - removed the request property `template/default-user`
  - removed the request property `template/description`
  - …7 more
- **2025-08-10** `814bf1ccd925`: 1 info
  - added the new `hr-zag-1` enum value to the request property `template/zones/items/`
- **2024-05-22** `d1903c399d90`: 1 info
  - the `disk-size` request property's max was increased from `50000.00` to `51200.00`
- **2023-06-06** `cf7b08181585`: 1 info
  - added the new `at-vie-2` enum value to the request property `template/zones/items/`
- **2023-02-03** `6e9809fd1444`: 2 breaking, 3 warning, 1 info
  - the `template/default-user` request property's minLength was increased from `0` to `1`
  - the `template/name` request property's minLength was increased from `0` to `1`
  - the `template/default-user` request property's maxLength was set to `255`
  - the `template/description` request property's maxLength was set to `255`
  - …2 more

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/instance/:id:reset/put.md)

---

[API](https://skmtc.dev/exoscale/apis/exoscale-api.md) - [All operations](https://skmtc.dev/exoscale/apis/exoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/exoscale/apis/exoscale-api/revisions/63da6f74c845?raw)
