> ## 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

> [tab] Sync
>
> ```python theme={null}
> def rename_app(
>     new_name: str,
>     app_id: Optional[str] = None,
>     app_name: Optional[str] = None,
> ) -> Dict[str, Any]
> ```

> [tab] Async
>
> ```python theme={null}
> async def rename_app(
>     new_name: str,
>     app_id: Optional[str] = None,
>     app_name: Optional[str] = None,
> ) -> Dict[str, Any]
> ```

## 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")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.