6. Recipes
Level: procedures. The operations that come back again and again, with the steps and the JSON. Every recipe assumes the cycle described in Drafts, publishing and history: you edit, save, check with the Tester, publish. The previous page is Validation and preview, the next one is Push update, for when a publishing must reach the apps right away.
1. The first configuration of an app
- Projects tree in the sidebar → project → the right environment (careful: it is not a detail, it is the coordinate that decides who will receive it).
- Configurations page → New app field → the
appIdthe app introduces itself with → New. - The editor opens on the empty template. In the JSON tab, replace it with a minimal document that can be served:
{
"configVersion": "2026.08.05",
"api": [
{
"serverMode": "path",
"baseUrl": "https://api.example.com/",
"apiVersion": "1.0",
"appTypes": ["all"],
"appModes": ["all"],
"min": "0000.00.00",
"max": "9999.99.99",
"activeDebug": false,
"languagesSupported": [],
"serverSettings": []
}
],
"appUpdate": [],
"inFoPoint": [],
"languages": { "defaultLang": "", "langList": [] }
}
- Green badge → Save draft (v1 is born).
- Tester tab: app version, type, mode, language → Run preview. Check that
serverApi.baseUrlis the URL you expect,apiVersionincluded. - Publish and confirm.
- Generate the API key of that environment (API keys page) and hand it to whoever develops the app (if you lose it, the list of keys can show it to you again: Dashboard → API keys).
This single block is also the fallback block to build on: every more specific block is added above it, never below.
2. Changing your server's address
Change baseUrl (and apiVersion if it changes) of the block the apps are receiving, save, check the composed address in the Tester, publish. The change applies from each app's next request.
If the new address is not safe yet, do not change the existing block: duplicate it above with a rollout (recipe 5). A wrong baseUrl published for everybody is fixed in a minute, but that minute is an outage; a wrong baseUrl at 10% is a contained incident.
3. Force update for old versions
Goal: whoever has a version lower than 2025.01.01 must update.
"appUpdate": [
{
"required": true,
"min": "0000.00.00",
"max": "2024.12.31",
"appTypes": ["all"],
"appModes": ["all"],
"msg": [
{ "language": "default", "title": "Update required", "message": "Please update to continue." },
{ "language": "it", "title": "Aggiornamento richiesto", "message": "Aggiorna per continuare." }
]
}
]
maxis inclusive:2024.12.31is the last version that receives the notice.- The
defaultrow is not optional: without it, an app in a language that is not listed receives an error instead of the configuration (page 5). A row left empty (title and text"") is listed, on the other hand: the apps in that language must update, but with no text. If you want thedefaulttext for them, remove the row. required: false(in the Form, Required off) turns the obligation into an invitation: the app shows the message and lets the user carry on.- If you add a second block (for example a stricter one for one platform), remember that in this section the last one that matches wins: the most specific one goes at the bottom.
Check in the Tester with a version inside the range and one outside, in at least two languages, one of which is not listed (the default text must come back).
4. Opening and closing a maintenance window
Opening — a total block, for everyone:
"inFoPoint": [
{
"halt": true,
"min": "0000.00.00",
"max": "9999.99.99",
"appTypes": ["all"],
"appModes": ["all"],
"msg": [
{ "language": "default", "title": "Maintenance", "message": "Back at 14:00 CET." },
{ "language": "it", "title": "Manutenzione", "message": "Torniamo alle 14:00." }
]
}
]
halt: true (in the Form, Halt on) blocks the use of the app; halt: false only shows the notice (useful to announce a slowdown or a planned maintenance).
Closing. The right way is to empty inFoPoint to [] and publish: the block is no longer there. Leaving the block with halt: false means that everyone will keep seeing a maintenance message. Prepare the closing configuration before opening the window: the middle of an outage is not the moment to write JSON.
Remember that maintenance and force update have no rules, segments or rollout: you cannot put 10% of the users into maintenance. The only targeting available is version, platform, mode.
5. A new version of the API, a little at a time
Goal: take apiVersion from 3.18 to 4.0 gradually, without touching those who stay behind.
"api": [
{
"serverMode": "path",
"baseUrl": "https://api.example.com/",
"apiVersion": "4.0",
"appTypes": ["all"], "appModes": ["all"],
"min": "0000.00.00", "max": "9999.99.99",
"languagesSupported": ["it", "en"],
"serverSettings": [],
"rollout": { "percentage": 10, "key": "entity", "salt": "api-v4" }
},
{
"serverMode": "path",
"baseUrl": "https://api.example.com/",
"apiVersion": "3.18",
"appTypes": ["all"], "appModes": ["all"],
"min": "0000.00.00", "max": "9999.99.99",
"languagesSupported": ["it", "en"],
"serverSettings": []
}
]
The shape is always this one: the new block above, the old one right below as a fallback. Whoever does not fall in the rollout slides to the next block and keeps receiving 3.18.
Progression: 10 → 25 → 50 → 100, one save and one publishing per step. Nobody who was already inside leaves when you raise the percentage (the band of each installation does not change). Once at 100, to tidy up, remove the rollout from the new block and delete the old one.
Stopping everything: percentage: 0. The block stays, documented and ready, and nobody receives it. Stopping is quicker than deleting, and it also reads better in the history.
Two things to check before announcing that the release is at 10%:
- the app sends a stable
entityId, otherwise the percentage applies to the whole app (page 4); - the
saltis new, if you want an audience independent of the previous releases; it is the same as another block's if you want the same people to receive both novelties.
In the Tester: a few real entityId values, and check that you find some inside and some outside.
6. A configuration for beta testers
Define the audience once:
"segments": {
"beta-testers": [["beta-user", "internal"]]
}
and call it from the blocks that serve it, always with the fallback right below:
"api": [
{ "apiVersion": "4.0", "segments": ["beta-testers"], "…": "…" },
{ "apiVersion": "3.18", "…": "…" }
]
The app enters the audience by sending beta-user or internal in its customParams. From then on the list of beta testers is managed in the app (or by whatever tells it), not in the configuration: here there is the rule, not the list of people.
When two conditions are needed together (beta and EU area) both segments apply: "segments": ["beta-testers", "eu-region"].
Check in the Tester with the right customParams and then without them: without, you expect the fallback block.
7. Adding a language or fixing a translation
- Form tab → Translations section.
- Add language with the lowercase code (
fr), Add key for a new entry, then fill in the cells. - Set the Default language: it must be one of the columns, otherwise publishing is blocked.
- Check the Languages served of the API blocks. The new language is already in every block: the grid adds it to
languagesSupportedof each one. Remove it from the blocks that must not serve it; if you remove it from all of them, the editor shows the Languages no API block serves warning. - Save, check in the Tester that
languagesappears in the output with the expected languages, publish.
A cell left empty is an empty translation: the app receives "" and shows an empty text, not the default language's one. It is how you leave a key without a text in a language. (Apps with SDK 0.3.0 or earlier still show the default language's text.) A language just added is already served by every API block: until you translate it, the apps in that language show empty texts. Fill it in before publishing, or remove it from the blocks' Languages served until it is ready.
Many translations at once, from a spreadsheet. Translators work better in Excel, Numbers or LibreOffice than in the grid:
- Start from the dictionary you have: Form tab → Translations section → Export, and choose the format. The file already has the right shape: in the first row the key column and the language codes, below one key per row. For a new configuration start from the template: Import from file → Download template, in the format you prefer. In XLSX and ODS the first sheet explains how to fill it in; in the second, replace the three example rows with your keys.
- Have the file translated: columns can be added for new languages and rows for new keys. Save it as XLSX, ODS, CSV or TSV.
- Import from file → Choose file.
- Read the summary. With the switch off, the file updates: it adds keys and languages and overwrites the cells it has filled in, without removing anything. With it on (Replace the whole dictionary), the dictionary becomes exactly the file. To start again from scratch there is also Clear dictionary, which removes all the languages, the keys and the values before the import.
- Apply, check the Default language and the Languages served of the blocks as in steps 3 and 4 of the recipe above, then save and publish as above.
The rules of the file, and the reasons why it is refused, are on page 3, sections “Importing translations from a file”, “The template to fill in”, “Exporting translations to a file” and “Clearing the dictionary”.
8. Going back after a wrong publishing
- History tab.
- Find the good version (the Published column says who published it and when; Compare versions says exactly what changed).
- Restore on that version: its content becomes the current working draft. It does not publish anything and does not rewrite the history.
- Publish the draft you just restored.
There are two steps on purpose: restoring changes nothing for the apps, and between the two steps you can still use the Tester. If you need to be quick, know in advance that going back is Restore + Publish, and that the apps receive the good version from their next request.
9. Bringing a configuration from staging to production
There is no automatic promotion, and that is deliberate: environments are independent because a staging configuration must not be able to reach production by mistake.
- Open the configuration in staging, JSON tab, copy the document.
- Go to the production environment, open (or create) the same app, paste.
- Review the differences that must stay different:
baseUrl,serverSettingsthat name the environment,activeDebug, anyappModes: ["debug"], arolloutin progress,configVersion. - Save, run the Tester in production, compare in the History with the version published now, publish.
Step 3 is the recipe: the rest is copy and paste. Whoever skips step 3 publishes a test baseUrl in production, which is the most common way of turning a valid configuration into an outage.
10. Retiring an app
Two ways, with different effects:
| Goal | How | Effect on the app |
|---|---|---|
| Stop the use of the app while leaving it its configuration | An inFoPoint block with halt: true (recipe 4), and an appUpdate if the way out is updating | It receives the configuration and the message: whoever uses it knows why it has stopped. |
| Take it out of service | Delete app configuration in the editor | It receives the “configuration not found” error (5003). If it does not use the last configuration saved on the device, it is left without a configuration. |
In the right order: first the halt message for a while, then the deletion. Deletion archives every version, keeps the history, and if the app is created again in the future the numbering picks up where it left off (page 2).