Skip to main content
PUT
Update Metadata (deprecated PUT alias of PATCH)

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

Update metadata request

machine_version
string

Only apply the change if this is still the Machine's current version; otherwise fail with 412. Defaults to the current version.

metadata
object

Keys to change. A string value sets the key; null, an empty string or whitespace removes it. Keys and values have surrounding whitespace trimmed. Keys not listed are left alone. Must contain at least one key.

updated_at
string

Time to record for the change in the Machine's metadata_update event. Defaults to now.

Response

No Content