API reference

Modify instance

Modify a running compute instance's resources The optional mode field is retained for legacy compatibility. If supplied, routing is derived from the requested or existing GPU count, not the mode value. New integrations should omit mode and configure resources using GPU type, GPU count, CPU, and storage.

View Markdown

POST/instances/{id}/modify

Modify a running compute instance's resources The optional mode field is retained for legacy compatibility. If supplied, routing is derived from the requested or existing GPU count, not the mode value. New integrations should omit mode and configure resources using GPU type, GPU count, CPU, and storage.

Parameters

id · path
Instance ID (index)

Request body

application/json

FieldTypeDescription
add_portsarray of integer
cpu_coresinteger
disk_size_gbinteger
gpu_typestring
modethundertypes.InstanceModeDeprecated: retained for legacy compatibility. Omit in new integrations. Behavior is specific to each endpoint; see its operation description.
num_gpusinteger
remove_portsarray of integer

Responses

200 · OK
FieldTypeDescription
gpu_typestring
identifierRequiredstring
instance_nameRequiredstring
num_gpusinteger
400 · Bad Request
FieldTypeDescription
codeinteger
errorstring
messagestring
401 · Unauthorized
FieldTypeDescription
codeinteger
errorstring
messagestring
404 · Not Found
FieldTypeDescription
codeinteger
errorstring
messagestring
409 · The change would exceed one of the organization's quotas
FieldTypeDescription
codeinteger
errorstring
messagestring
quotathundertypes.QuotaExceeded
500 · Internal Server Error
FieldTypeDescription
codeinteger
errorstring
messagestring
503 · The organization's quotas could not be checked, or concurrent changes kept the request from committing; retry
FieldTypeDescription
codeinteger
errorstring
messagestring

Operation specification

The downloadable Markdown includes the published OpenAPI schema. Use the API origin provided by your compute account.