Skip to main content
POST
Create Lease

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

Headers

fly-machine-lease-nonce
string

Existing lease nonce to refresh by ttl, empty or non-existent to create a new lease

Path Parameters

app_name
string
required

Fly App Name

machine_id
string
required

Machine ID

Query Parameters

ttl
integer

How long the lease is valid, in seconds. Overridden by ttl in the request body.

Body

application/json

Request body

description
string

Description or reason for the lease, shown to others who look at it.

ttl
integer

How long the lease is valid, in seconds. Defaults to 60.

Response

Created

data
object

The lease.

status
enum<string>

Always success.

Available options:
success