Update Metadata (deprecated PUT alias of PATCH)
Deprecated: use PATCH on the same path, which this is identical to.
- Despite the method, this does not replace the metadata: keys that are not in the request are left untouched. Null values and empty strings remove keys.
- If
machine_versionis provided and no longer matches the current machine version, returns 412 Precondition Failed.
Authorizations
A Fly API token with access to the requested organization or resource. Send it as Authorization: Bearer <Fly API token>.
Body
Update metadata request
Only apply the change if this is still the Machine's current version; otherwise fail with 412. Defaults to the current version.
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.
Time to record for the change in the Machine's metadata_update event. Defaults to now.
Response
No Content