- In the Sensible app, click Publish configuration and choose Development to save your updates to a development environment.
- To test your updated config, specify
developmentfor the Environment parameter in your API or SDK extraction calls.
Environment fallback behavior
When you specify?environment=development in an API endpoint, Sensible falls back to the production version for each configuration if it can’t find a development version.
To understand fallback behavior, imagine the document type test_doc_type has the following config versions, which fit a document_a with varying degrees of accuracy:
| Config | Version in prod | Version in dev |
|---|---|---|
| configA | best fit | bad fit |
| configB | OK fit | no published version |
?environment=development, Sensible searches for a best fit across both production and development by comparing:
configAin development (bad fit)configBin production (OK fit)
configB (OK fit) in production. Notice that even though the API call specifies the Development environment, the call returns output from a production config because of fallback behavior.
If you don’t specify an environment, Sensible ignores development versions and compares:
configAin production (best fit)configBin production (OK fit)
configA (best fit) in production.
