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

# rename_app

> Rename a cloud app by ID or current name

<Tabs>
  <Tab title="Sync">
    ```python theme={null}
    def rename_app(
        new_name: str,
        app_id: Optional[str] = None,
        app_name: Optional[str] = None,
    ) -> Dict[str, Any]
    ```
  </Tab>

  <Tab title="Async">
    ```python theme={null}
    async def rename_app(
        new_name: str,
        app_id: Optional[str] = None,
        app_name: Optional[str] = None,
    ) -> Dict[str, Any]
    ```
  </Tab>
</Tabs>

## Parameters

* `new_name` (str): New app name
* `app_id` (str, optional): App ID to rename
* `app_name` (str, optional): Current app name to rename

## Returns

* `Dict[str, Any]`: API response with rename status

## Examples

```python theme={null}
db.rename_app(new_name="prod-app", app_name="staging-app")
```
