# Edit an application

From the menu select **Applications**, select the application you want to edit, then click **Edit this application** or **Edit external application**.

<figure><img src="https://content.gitbook.com/content/xdTQRpMuktD2l0URtOJO/blobs/hm8XC6TNOWTPnYXM2eHT/edit-application.gif" alt=""><figcaption></figcaption></figure>

Your editing options will depend on how the application was deployed initially.

{% hint style="info" %}
Regardless of the deployment method, you can [edit an application's YAML directly](https://docs.portainer.io/user/kubernetes/inspect#yaml-tab) through the YAML tab in Portainer Business Edition.
{% endhint %}

## Applications deployed from Git

If the application was [deployed from a Git repository](https://docs.portainer.io/user/kubernetes/manifest#repository) you can redeploy it from the repository if needed. You will see the repository URL that the application was deployed from, the current version deployed, and the file used for the deployment.

<figure><img src="https://content.gitbook.com/content/xdTQRpMuktD2l0URtOJO/blobs/5R2IxIxx2jDQxopnhGoM/2.19-kubernetes-applications-edit-git-info.png" alt=""><figcaption></figcaption></figure>

You can reconfigure GitOps updates, the repository reference and authentication here if needed. If a change window is enabled, information on it will appear here as well.

<figure><img src="https://content.gitbook.com/content/xdTQRpMuktD2l0URtOJO/blobs/PUbOO68aDkHinNBcsOIf/2.20-kubernetes-applications-edit-gitops.png" alt=""><figcaption></figcaption></figure>

If you want to redeploy, click **Pull and update application**. If you're simply updating the repository settings and don't need to redeploy, click **Save settings**.

## Applications deployed from the Web Editor

If the application was deployed from the Web Editor, you will be given the ability to edit the manifest manually.&#x20;

{% hint style="info" %}
You can search within the web editor at any time by pressing `Ctrl-F` (or `Cmd-F` on Mac).
{% endhint %}

<figure><img src="https://content.gitbook.com/content/xdTQRpMuktD2l0URtOJO/blobs/eDr0HhIZO6eqtu2tME9d/2.20-kubernetes-applications-edit-webeditor.png" alt=""><figcaption></figcaption></figure>

Make the required changes then click **Update application**.

## Applications deployed from an Edge Stack

If the application was deployed from an Edge stack, selecting **Edit this application** redirects you to the [Edit Edge Stacks page](https://docs.portainer.io/user/edge/stacks), where you can view the stack details or modify the stack.

## Applications deployed from a form

When editing an application deployed from a form, you will be able to update the configuration using the same form. Refer to [adding a new application using a form](https://docs.portainer.io/user/kubernetes/applications/add) for details.
