Skip to main content
PUT
Set Machine Memory Limit

Authorizations

Authorization
string
header
required

A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.

Path Parameters

app_name
string
required

Fly App Name

machine_id
string
required

Machine ID

Body

application/json

Set memory limit request

limit_mb
integer

New limit in MiB. Must be at least 128 and at most the Machine's configured memory (guest.max_memory_mb if set, else guest.memory_mb).

Response

OK

available_mb
integer

Highest limit, in MiB, that the Machine could currently be raised to: its configured memory (guest.max_memory_mb if set, else guest.memory_mb), capped by the host's free memory.

limit_mb
integer

Memory, in MiB, the guest can currently use.