> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Organizing content with folders

> Create, move, share, and delete folders in Omni, set breadcrumb roots, and set document settings for a folder's subtree.

Using folders for content organization allows you to maintain structure and determine how users access content. For example, folders could allow you to organize content and access for:

* Teams, such as **Operations** or **Finance**
* Employee level, such as **Manager** or **Executive**
* Projects
* Clients

Folders can contain documents and subfolders.

## Creating folders

> [tab] Omni UI
>
> To create a folder in the Omni UI, click **Add folder** in the **My documents** folder or your organization's **Hub**. If your organization's [**Shared root is open** setting](https://docs.omni.co/administration/settings.md) is disabled, you won't be able to create content in the **Hub**.

> [tab] API
>
> To create a folder using the API, call the [Create folder](https://docs.omni.co/api/folders/create-folder.md) endpoint.
>
> ```http theme={null}
> curl --request POST \
> --url https://{your-omni-org}.omniapp.co/api/v1/folders \
> --header 'Authorization: Bearer {token}' \
> --header 'Content-Type: application/json' \
> --data '
> {
> "name": "Blob. Sales",
> "parentFolderId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
> "scope": "organization",
> "userId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
> "breadcrumbRoot": true
> }
> '
> ```

### Nesting folders

Creating subfolders in folders is supported. The parent folder can contain up to seven levels of nesting, for example:

* . Shared (root)
  * Folder 1/
    * Folder 2/
      * Folder 3/
        * Folder 4/
          * Folder 5/
            * Folder 6/
              * Folder 7 (nesting limit)/

## Accessing and sharing folders

When you share a folder, permissions cascade to all documents and subfolders inside it. This means that the access role you assign to a folder applies to everything the folder contains.

Content access roles on folders work differently than on individual documents. For a detailed comparison of folder and document permissions, and information about inheriting access roles, refer to the [Sharing content guide](https://docs.omni.co/share.md#content-access-permissions).

## Configuring folder settings

> [!NOTE]
>
> **Manager** or **Owner** permissions are required to modify folder settings.

Folder settings define how a folder is identified and how the documents inside it behave. In the **Folder settings** dialog, the settings are organized into two tabs:

* **General** - The folder's name, its URL path, and where breadcrumbs start. Refer to [General settings](#general-settings) for more information.
* **Document settings** - Defaults and locks for the document abilities of every document in the folder's subtree. Refer to [Default document abilities](#default-document-abilities) for more information.

### General settings

> [tab] Omni UI
>
> To access a folder's general settings, click the  icon next to the folder in a content list page, then **Folder settings**.
>
> The **General** tab contains the following settings; click **Advanced** to view all settings. Click **Save** to apply any changes.
>
> #### Name
>
> Defines the display name of the folder.
>
> #### Path
>
> Defines the URL segment of the folder. For example, if a folder's **Path** is set to `blob-sales`, the URL to access the folder might be something like:
>
> ```text theme={null}
> https://blobsrus.omniapp.co/f/blob-sales
> ```
>
> Changing a folder's **Path** changes its URL - it doesn't change the folder's location. See [Moving folders](#move) for more information.
>
> #### Start breadcrumbs at this folder
>
> When enabled for a folder, breadcrumbs for the folder and everything inside it start at that folder.
>
> Ancestor folders and the crumbs for the top-level spaces (**Shared** and **My Documents** by default) are hidden. If your organization has renamed these spaces, the hidden crumbs use the custom names instead — see [Group titles and visibility](https://docs.omni.co/administration/settings/sidebar.md#group-titles). This setting affects:
>
> * Folder page breadcrumbs and the file picker
> * Dashboard and document title breadcrumbs and hover cards
> * Content list location strings
>
> This setting is useful for scoping navigation to a specific subtree, for example in embed use cases built around a specific [`contentPath`](https://docs.omni.co/embed/setup/url-parameters/contentPath) folder.

> [tab] API
>
> To update general folder settings using the API, use the [Update folder](https://docs.omni.co/api/folders/update-folder.md) endpoint. You an also define these settings when you initially [create the folder](#api-create).
>
> ```http theme={null}
> curl --request PATCH \
>   --url https://{your-omni-org}.omniapp.co/api/v1/folders/{folderId} \
>   --header 'Authorization: Bearer {token}' \
>   --header 'Content-Type: application/json' \
>   --data '
> {
>   "name": "Blob Sales Reports",
>   "path": "sales-reports",
>   "resolvePathConflict": false,
>   "breadcrumbRoot": true
> }
> '
> ```

### Default document abilities

Folder managers can set defaults or locks for a folder's [document abilities](https://docs.omni.co/administration/content-permissions.md#default-document-abilities) — such as **Download** or **Require pull request to publish** — so the setting applies across every document in the folder's subtree.

> [tab] Omni UI
>
> 1. Open the folder and click the  icon next to the **Share** icon.
> 2. Click **Folder settings**.
> 3. Click the **Document settings** tab.
> 4. For each document ability, select an option:
>    * **Organization default** - New documents use the ability's default setting in [**Settings > Content permissions**](https://docs.omni.co/administration/content-permissions.md#default-document-abilities)
>    * **On** - New documents have the ability enabled by default
>    * **Off** - New documents have the ability disabled by default
> 5. **Optional**. To prevent **Editors** from changing the ability in individual documents, click the  icon:
>
>    ![Two document ability settings, one locked to off and the other set to On](https://mintcdn.com/omni-e7402367/3zYk4GP7c3TcdswV/content/images/folder-default-document-lock.png?fit=max\&auto=format\&n=3zYk4GP7c3TcdswV\&q=85\&s=d899fe76d82ea0c16d6788f957f23d87)
>
>    Locking an ability prevents document Editors from changing it, even if they otherwise have permissions to modify document settings
>
>    When locked, **Editors** won't be able to change the ability's value. Additionally, documents already in the folder's subtree - that is, documents in the folder and the folders it contains - won't be able to change the ability either.
>
>    If a folder higher in the tree already locks an ability, you won't be able to change its value. Instead, you'll see a yellow lock and a note indicating the folder locking the ability:
>
>    ![Locked Request access with a disabled value dropdown, yellow lock, and yellow pill with copy that says Disabled by Blobs](https://mintcdn.com/omni-e7402367/3zYk4GP7c3TcdswV/content/images/folder-default-parent-lock.png?fit=max\&auto=format\&n=3zYk4GP7c3TcdswV\&q=85\&s=a06cd31a0aa90f1d9ec14abfdb767bbc)
>
>    Document ability is locked by the Blobs folder, which is higher in the folder tree
>
>    When folders are nested and more than one locks the same ability, the topmost folder's setting is used even if a subfolder has a stricter setting.
> 6. When finished, click **Save** to apply your changes.

> [tab] API
>
> Use the [Update folder permission settings API](https://docs.omni.co/api/folder-permissions/update-organization-level-folder-permissions.md) with `documentSettings` to set the ability defaults and locks.
>
> For example, to lock **Download** off for every document in a folder:
>
> ```http theme={null}
> curl --request PUT \
>   --url https://{your-omni-org}.omniapp.co/api/v1/folders/{folderId}/permissions \
>   --header 'Authorization: Bearer {token}' \
>   --header 'Content-Type: application/json' \
>   --data '
> {
>   "documentSettings": {
>     "canDownload": "ALWAYS_OFF"
>   }
> }
> '
> ```

> [!NOTE]
>
> A folder's default ability settings don't apply to documents moved into the folder, only to documents created in the folder after the settings are defined.

## Moving folders

1. Open the folder options menu:
   * Open the folder and click the  icon next to the **Share** icon, or
   * On a page like the shared **Hub** or **My Documents**, right-click the folder or click the  icon next to the folder.
2. Click **Move**.
3. Select the folder to move to.
4. Click **Save**.

### Deleting folders

Folders can only be deleted if they're empty. Who can delete a folder depends on their [content access role](https://docs.omni.co/share.md#content-access-permissions):

* **Editors** can delete empty folders they created
* **Managers** can delete any empty folder they have access to

> [tab] Omni UI
>
> To delete a folder in the Omni UI, click the folder's  icon and then **Delete**.

> [tab] API
>
> To delete a folder using the API, call the [Delete folder](https://docs.omni.co/api/folders/delete-folder.md) endpoint:
>
> ```http theme={null}
> curl --request DELETE \
> --url https://{your-omni-org}.omniapp.co/api/v1/folders/{folderId} \
> --header 'Authorization: Bearer {token}'
> ```
