Set the default visibility for new root files
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.
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 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.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
visibility |
string | Yes | public or private. |