build_replace_project
DESTRUCTIVE (DOMAIN-admin keys only): completely replace a DEV-mode project's app — wipes its data (retains credentials, API keys, namespace, tenant). Refused if mode='live'. Requires confirm_project_name to match. If you pass files, they are VALIDATED before any wipe (a bad bundle is a no-op) and published after; otherwise wipe-only, then call build_publish.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Optional new bundle {path: content} to publish after the wipe. | |
| force | No | Wipe and publish despite SOFT validation errors (default false). Never overrides a wrong/absent schema namespace, a JavaScript syntax error or schemas the platform refuses: those are refused before anything is wiped. | |
| app_type | No | Default 'web'. | |
| files_ref | No | For a LARGE bundle that exceeds the model output-token cap: a file_id from build_stage_bundle (upload the gzip(json {path:content}) blob out-of-band, then pass its file_id here). Preferred over files/files_b64gz when the bundle will not fit inline. | |
| files_b64gz | No | Alt to files: base64(gzip(JSON {path:content})). Use if a CDN/WAF blocks raw code in the body. | |
| project_uuid | Yes | Project UUID (from build_list_projects or build_create_project). | |
| confirm_project_name | Yes | Must equal the project's name — a safety confirmation. |