Build Blocks portal upload JSON
build_upload_entriesCreates the exact JSON array structure required for Blocks portal import, including new UUIDs and IsPartiallyTranslated flags, from already-translated resources. Use after translating keys manually.
Instructions
Pure JSON assembly (aside from resolving moduleName -> id, which is cached to disk so it rarely needs a live call). Takes already-translated keys (translate them yourself first, matching tone across all 7 cultures) and stamps them into the exact array shape the Blocks portal JSON import expects: _id (new uuid), TenantId, ModuleId, Value: null, Routes: [], and IsPartiallyTranslated computed from whether all target cultures were provided. Run search_keys first to avoid re-uploading keys that already exist. Prefer sync_keys for the common case (dedup-check + build + write to disk in one call).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | Yes | ||
| moduleId | No | Raw ModuleId, if already known. Takes priority over moduleName. | |
| tenantId | No | Defaults to BLOCKS_TENANT_ID from .env if omitted. | |
| moduleName | No | e.g. "app-survey" — resolved to a ModuleId via cache/list_modules. |