parameters.json file is included at the root of the directory of a custom block. It is used to describe the block itself and identify the parameters available for its configuration. The parameters defined in this file are the input options rendered for the block in Studio and passed into the block as arguments when the it is run.
File structure
The file can be considered in two sections: a header section and a parameters section. The header section identifies the block type and its associated metadata. The metadata required varies by block type. This information is followed by an array of parameters items.File examples
Below you will find full examples of parameter files for the various types of blocks.Parameter types
Parameter items are defined as JSON objects that contain atype property. For example:
| Type | Renders | Passes |
|---|---|---|
| Boolean | Checkbox | --<param-name> 1 (true) | --<param-name> 0 (false) |
| Bucket | Dropdown | --<param-name> "<bucket-name>" |
| Dataset | Dropdown | --<param-name> "<dataset-name>" |
| Flag | Checkbox | --<param-name> (true) | (false) |
| Float | Text box | --<param-name> <value> |
| Int | Text box | --<param-name> <value> |
| Secret | Text box | <param-name> (environment variable) |
| Select | Dropdown | --<param-name> <value> |
| String | Text box | --<param-name> "<value>" |
Processing blocks do not receive command line argumentsInstead of command line arguments being passed to the block as shown above, processing blocks receive an HTTP request with the parameters in the request body, which are subsequently passed to the function generating the features in your processing block. In this case, dashes in parameter names are replaced with underscores before being passed to your function as arguments:A processing block parameter named
custom-processing-param is passed to your feature generation function as custom_processing_param.Secrets are passed as environment variables instead of command line arguments

Boolean

Bucket
Only available for AI labeling, synthetic data, and transformation blocks

Dataset
Only available for AI labeling, synthetic data, and transformation blocks

Flag

Float

Int

Secret
Only available for AI labeling, synthetic data, and transformation blocks


Select




String

Parameter groups
Only available for processing blocks
group property is rendered as a header element.

Parameter logic
showIf
Parameters can be conditionally shown based on the value of another parameter using theshowIf property.


showForImplementationVersion
Only available for processing blocks
latestImplementationVersion property of the processing block.
A processing block set to version 4: