Skip to main content
POST
Update app secrets belonging to an app

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

Body

application/json

Update app secret request, with values to set, or nil to unset

values
object

Secrets to change, keyed by name. A string value sets the secret; null deletes it. Names may only contain letters, digits, and underscores. Secrets not listed are left alone.

Response

OK

Version
integer

Same value as version.

Deprecated: use version.

secrets
object[]

The secrets from the request, with their new values and digests; deleted secrets only have a name.

version
integer

The app's secrets version after this change. Pass it as min_secrets_version when creating or updating Machines so that they are guaranteed to see the change.