---
title: "Update a Compute instance"
method: PUT
path: "/instance/{id}"
tags: ["instance"]
---

# Update a Compute instance

`PUT /instance/{id}`

## Request

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

## Path parameters

- `id` string, uuid, required

## Request body

- object
  - `name` string: Instance name
  - `user-data` string: Instance Cloud-init user-data (base64 encoded)
  - `public-ip-assignment` 'inet4' | 'dual' | 'none'
  - `labels` Labels
  - `application-consistent-snapshot-enabled` boolean: Enable/Disable Application Consistent Snapshot for Instance

## 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`: 1 info
  - added the new optional request property `application-consistent-snapshot-enabled`
- **2025-08-10** `814bf1ccd925`: 1 info
  - the request property `labels` became nullable
- **2023-12-08** `ec6a2a6bc1c1`: 1 warning
  - the `user-data` request property's maxLength was set to `32768`
- **2023-02-03** `6e9809fd1444`: 2 breaking, 1 warning, 1 info
  - the `name` request property's minLength was increased from `0` to `1`
  - the `user-data` request property's minLength was increased from `0` to `1`
  - the `name` request property's maxLength was set to `255`
  - added the new optional request property `public-ip-assignment`

[Operation history](https://skmtc.dev/exoscale/apis/exoscale-api/changes/instance/:id/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)
