> ## Documentation Index
> Fetch the complete documentation index at: https://docs.novita.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit Instance

## Request Headers

**Content-Type** `string` *required*

Enum: `application/json`

**Authorization** `string` *required*

Bearer authentication format, for example: Bearer \{\{API Key}}.

## Request Body

**instanceId** `string` *required*

ID of the instance to edit.

**ports** `object[]`

Ports to be exposed by the instance. The total number of ports used by ports + tools must not exceed 15.

**properties**

**port** `integer`

Port number. Supported port range: 1-65535, except for 2222, 2223, and 2224 which are reserved for internal use.

**type** `string`

Protocol type. Supported values: `tcp`, `http`.

**expandRootDisk** `integer`

Size to expand the root disk, in GB. Integer, value must be >= 0. Set to 0 if no expansion is needed.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.