ANNOUNCEMENT: Voyage AI joins MongoDB to power more accurate and trustworthy AI applications on Atlas.
Learn more
Docs Menu

Value Configuration Files

On this page

You can define static values in the /values directory. Each value is defined in its own JSON file with the same name as the value.

app/
└── values/
└── <value name>.json
<value name>.json
{
"id": "<Value ID>",
"name": "<Value Name>",
"from_secret": <boolean>,
"value": <Stored JSON Value|Secret Name>
}
Field
Description
id
string

A string that uniquely identifies the value. Atlas App Services automatically generates a unique ID for a value when you create it.

name
string

A unique name for the value. This name is how you refer to the value in functions and rules.

from_secret
boolean

Default: false. If true, the value exposes a Secret instead of a plain-text JSON value.

value
any

The stored data that App Services exposes when the value is referenced.

If from_secret is false, value can be a standard JSON string, number, array, or object.

If from_secret is true, value is a string that contains the name of the Secret that the value exposes.

On this page