# set_storage_root_visibility

Source: https://modulify.ai/docs/mcp/storage/set-storage-root-visibility

Sets whether new files uploaded with no visibility default to public or private at the top level of a site's storage.

- Title: Set the default visibility for new root files
- Scope: `data:write`
- Access: Makes changes

The default covers files uploaded with no visibility straight to the top level, and into a folder that has no default of its own and sits under no folder that has one. A folder carrying its own default, or sitting inside one that does, keeps following that folder, as [Which files are private](https://modulify.ai/docs/data/storage#which-files-are-private) describes.

It changes nothing about files that already exist, and `get_storage_info` reports the current value as `rootVisibility`. While a storage backup is being restored, the call is refused with a `409` and `Your storage is being restored from a backup. Try again when the restore finishes!` See [While a restore runs](https://modulify.ai/docs/editor/backups#while-a-restore-runs).

## Inputs

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `projectId` | string | Yes | The site id. |
| `visibility` | string | Yes | `public` or `private`. |