---
title: "Modify instance"
method: POST
path: "/instances/{id}/modify"
tags: ["Instances"]
---

# Modify instance

`POST /instances/{id}/modify`

Modify a running compute instance's resources

## Path parameters

- `id` string, required

## Request body

- union
  - object
  - ThundertypesInstanceModifyRequest
    - `add_ports` integer[]
    - `cpu_cores` integer
    - `disk_size_gb` integer
    - `gpu_type` string
    - `mode` 'prototyping' | 'production'
    - `num_gpus` integer
    - `remove_ports` integer[]

## Response `200`

OK

- ThundertypesInstanceModifyResponse
  - `gpu_type` string
  - `identifier` string, required
  - `instance_name` string, required
  - `num_gpus` integer

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `500` — Internal Server Error

## Changes

> 6 revisions in range; 2 could not be searched.

- **2026-07-26** `34c556152ce5` — 1 warning
  - removed the request property `oneOf[#/components/schemas/thundertypes.InstanceModifyRequest]/ephemeral_disk_gb`

[Change history](https://skmtc.dev/thundercompute/apis/thunder-compute-api/changes/instances/:id/modify/post.md)

---

[API](https://skmtc.dev/thundercompute/apis/thunder-compute-api.md) · [All operations](https://skmtc.dev/thundercompute/apis/thunder-compute-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/thundercompute/thunder-compute-api/revisions/122382e24d26/schema)
