---
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

---

[API](https://skmtc.net/thundercompute/apis/thunder-compute-api.md) · [All operations](https://skmtc.net/thundercompute/apis/thunder-compute-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/thundercompute/thunder-compute-api/versions/a8120edca3aa/schema)
