POST
/
gpu-instance
/
openapi
/
v1
/
gpu
/
instance
/
edit
curl --request POST \
  --url https://api.novita.ai/gpu-instance/openapi/v1/gpu/instance/edit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "instanceId": "<string>",
  "ports": [
    {
      "port": 123,
      "type": "<string>"
    }
  ],
  "expandRootDisk": 123
}'

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.

expandRootDisk
integer

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