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

# Fusion Apps

export const LwTemplate = ({title = "Key questions to get you started", icon = "sparkles", cta = "Powered by Agent Studio", linkHref = "https://lucidworks.com/demo/?utm_source=docs&utm_medium=referral&utm_campaign=docs_cta_ai"}) => {
  const [isLoaded, setIsLoaded] = useState(false);
  useEffect(() => {
    const timer = setTimeout(() => {
      setIsLoaded(true);
    }, 500);
    return () => clearTimeout(timer);
  }, []);
  return <div className="lw-template-container">
      <Card title={title} icon={icon}>
        {isLoaded && <span dangerouslySetInnerHTML={{
    __html: `<lw-template id="a029c1a9-28be-427e-b0e1-5d918920246a"></lw-template
            >`
  }} />}
        <Link href={linkHref} className="agent-studio-link text-left text-gray-600 gap-2 dark:text-gray-400 text-sm font-medium flex flex-row items-center hover:text-primary dark:hover:text-primary-light group-hover:text-primary group-hover:dark:text-primary-light">Powered by Lucidworks Agent Studio</Link>
      </Card>
    </div>;
};

export const InlineImage = ({src, alt = '', height = '2em'}) => {
  return <img src={src} alt={alt} style={{
    display: 'inline',
    verticalAlign: 'start',
    height: height,
    margin: '0'
  }} />;
};

[localhost link]: http://localhost:3000/docs/5/fusion/intro/ui-tour/fusion-apps

[mintlify link]: https://doc.lucidworks.com/docs/5/fusion/intro/ui-tour/fusion-apps

[old doc.lw link]: https://doc.lucidworks.com/fusion/5.9/179

*Fusion apps* provide tailored search functionality to specific groups of users.

An app is a named set of linked *objects*, including collections, datasources, index and query pipelines, index and query profiles, parsers, and more.
You can define security on a per-app basis using [roles](/docs/5/fusion/operations/security/access-control/roles) and
[security realms](/docs/5/fusion/operations/security/access-control/security-realms).

The **Create App** modal can be accessed by clicking Create App. When naming an app, the name must start with a letter and can include letters, numbers, dashes (`-`), or underscores (`_`), with a maximum length of 128 characters.

**To edit an app, access the **Edit App** modal by clicking on the settings cog icon on the app tile. Click on the pencil icon by the app name in the modal to edit the app name.**

Generally, you will create multiple apps for different purposes. You can view all of your apps in the launcher when you log in to the Fusion UI:

<img src="https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.6/launcher-1-56.png?fit=max&auto=format&n=L5PMnIeZ03zhv8Ti&q=85&s=38545558a2d60fa332211f570f514635" alt="Launcher" width="2454" height="1608" data-path="assets/images/5.6/launcher-1-56.png" />

To enter the Fusion workspace for any app, click the app name.

In the Fusion workspace, you can hover over <InlineImage src="/assets/images/5.6/workspace-menu-apps-56.png" /> to switch to another app, create a new app, or return to the launcher:

<img src="https://mintcdn.com/lucidworks/VKnUHJXP6sWH55ak/assets/images/5.6/workspace-app-picker-56.png?fit=max&auto=format&n=VKnUHJXP6sWH55ak&q=85&s=de97a7809a0393da5a7426675edf6687" alt="App picker" width="250" height="369" data-path="assets/images/5.6/workspace-app-picker-56.png" />

<Card title="Fusion Applications and Collections" class="note-image" href="https://academy.lucidworks.com/fusion-applications-and-collections" cta="Take this course on the LucidAcademy." icon="graduation-cap" iconType="duotone">
  The course for **Fusion Applications and Collections** focuses on the features of Fusion apps and collections and best practices when working with them.
</Card>

<LwTemplate />

## Learn more

<AccordionGroup>
  <Accordion title="Create and manage Fusion apps">
    You can create, modify, and delete apps in the Fusion UI or with the Apps API.

    ## Manage apps in the Fusion UI

    ### Create an app

    Fusion prompts you to create an app the first time you log in. You can create additional apps at anytime from Fusion’s home page.

    1. Log into Fusion and navigate to the home screen.
    2. Click **Create new app**.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/welcome-screen-create-app.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=d5c1b818f232678424988e589397d7d6" alt="Welcome screen create app" width="678" height="684" data-path="assets/images/5.9/welcome-screen-create-app.png" />
    3. Enter a **Name**, **Description**, and select an **App tile color**.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/create-app-details.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=e0e17ffc65178414b5a5d6386bf9dce1" alt="Create app" width="1702" height="1206" data-path="assets/images/5.9/create-app-details.png" />
    4. Click **Create App**.

    ### Modify or delete an app

    1. Log into Fusion and navigate to the home screen.
    2. Click the **Configure** icon on the app you want to modify or delete.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/launcher-app-config-hover.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=15707ec049a5faf64fbdeb0b644abc65" alt="App config button" width="1461" height="830" data-path="assets/images/5.9/launcher-app-config-hover.png" />
    3. To modify the app, click the edit icon <img className="inline-image" alt="Edit icon" src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/app-edit-icon.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=f725ecb17c8bf540a33a36d916967f30" width="29" height="30" data-path="assets/images/5.9/app-edit-icon.png" />.

           <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/modify-app-details.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=37109663bd40196d6feae320d06e371a" alt="Modify app details" width="1457" height="1215" data-path="assets/images/5.9/modify-app-details.png" />

       1. Edit the **Name** or **Description**.
       2. Click **OK**.
    4. To delete the app, click **Delete app**.
       1. A dialog box appears where you can choose which associated objects to delete or retain. Only objects not associated with other objects are displayed. All objects are selected by default.
       2. Click **Confirm**.

              <img src="https://mintcdn.com/lucidworks/sBy1WWIeb2aVbL1d/assets/images/5.9/launcher-app-delete-dialog.png?fit=max&auto=format&n=sBy1WWIeb2aVbL1d&q=85&s=6af7b5b6a97d5f7a577527c04a5e3845" alt="Confirmation dialog" width="1072" height="1417" data-path="assets/images/5.9/launcher-app-delete-dialog.png" />

    ## Manage apps with the Apps API

    ### Create an app

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD -X POST -H 'Content-type: application/json' -d '{"id": "MyNewApp", "name":"My new app", "description":"A really really great new app"}' https://FUSION_HOST/api/apps
    ```

    ### Delete an app

    Run the following command, replacing `{id}` with the name of your app. This operation take about a minute to complete.

    ```bash theme={"dark"}
    curl -u USERNAME:PASSWORD -X DELETE https://FUSION_HOST/api/apps/{id}
    ```
  </Accordion>

  <Accordion title="Export a Fusion App">
    To export a Fusion app, you can use either the Fusion UI or the Objects API.

    <Check>To upgrade from one Fusion version to a 5.x version, see Fusion 5 Upgrades to migrate objects.</Check>

    ## Export an app with the Fusion UI

    1. How to export an app with the Fusion UI
    2. Navigate to the launcher.
    3. Hover over the app you want to export and click the Configure icon:
           <img src="https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.6/launcher-app-config-hover-56.png?fit=max&auto=format&n=L5PMnIeZ03zhv8Ti&q=85&s=8ae921d898899048020c96681719b4ee" alt="App config button" width="3138" height="1134" data-path="assets/images/5.6/launcher-app-config-hover-56.png" />
    4. In the app config window, click **Export app to zip**:
           <img src="https://mintcdn.com/lucidworks/L5PMnIeZ03zhv8Ti/assets/images/5.6/launcher-export-app-56.png?fit=max&auto=format&n=L5PMnIeZ03zhv8Ti&q=85&s=198aa7f16fddd9adc758115e7ec132c2" alt="Export app to zip" width="869" height="989" data-path="assets/images/5.6/launcher-export-app-56.png" />

    See import for information to import the downloaded zip file into other instances of Fusion 5.x.

    ## Export an app with the Objects API

    The examples below show how to export one or more apps:

    **Export all apps**

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD http://localhost:6764/api/objects/export?type=app > all-apps.zip
    ```

    **Get all app IDs, then export one app by ID**

    ```bash expandable theme={"dark"}
    > curl -u USERNAME:PASSWORD http://localhost:6764/api/apps

    [ {
      "id" : "movies",
      "name" : "Movies",
      "description" : "Search the movielens database.",
      "dataUri" : "/App-Tile-01-460x160.png",
      "properties" : {
        "headerImageName" : "headerImage1",
        "tileColor" : "apps-darkblue",
        "previousCollectionId" : "movies"
      }
    }, {
      "id" : "tech-pubs",
      "name" : "TechPubs",
      "description" : "Search the documentation.",
      "dataUri" : "/App-Tile-02-460x160.png",
      "properties" : {
        "headerImageName" : "headerImage2",
        "tileColor" : "apps-darkblue",
        "previousCollectionId" : "tech-pubs"
      }
    } ]

    > curl -u USERNAME:PASSWORD http://localhost:6764/api/objects/export?app.ids=tech-pubs > techpubs.zip
    ```

    <Note>When you export an app that includes objects that are shared with other apps, then all apps linked to that object are also exported.</Note>

    **Export two apps by ID**

    ```bash wrap theme={"dark"}
    curl -u USERNAME:PASSWORD http://localhost:6764/api/objects/export?app.ids=tech-pubs,movies > two-apps.zip
    ```

    <Tip>
      For the `app` object type, the `deep` parameter is not used. Linked objects are always included when exporting apps.
    </Tip>
  </Accordion>
</AccordionGroup>
