4. use

Last updated: Sep 11, 2025
DEVELOPER
IMPLEMENTATION
HEALTH TECH VENDOR

Definition

In a config modifier schema, use use to:

  • indicate which payload to act upon; or
  • grant access to an input payload beyond the selector’s initial scope.

This is helpful if you want to access variables or values outside the scope provided by the selector. For example, you could modify something at the selector path based on the presence or value of another path. Review available variables below this section.

This keyword is typically a sub-keyword of references, but may be used in other cases. Learn about the references keyword.

Available variables

Nesting level

This keyword executes at the following nesting level:

  1. omit
  2. constant
  3. references
  4. use
  5. get
  6. properties or if or concat or switch or pipe or merge
  7. default
  8. plugin

Example

You could indicate that you always want to use the value at a given selector from the initial payload.

Example: Use input from initial payload
json
1
{
2
"favorites": {
3
"dessert": "Cheesecake"
4
"appetizer": "Buffalo wings"
5
}
6
}
Example: Config modifier with use keyword
yaml
1
use: initialPayload
2
get: favorites.dessert
Example: Use output
json
1
"Cheesecake"