---
sidebar_label: Update repository name
doc_id: 6c6121e4-4b5a-4e26-8f77-72b6c9edc7aa
description: >-
  Learn how to update the repository URL in your application after renaming it
  in your source provider to keep it in sync and prevent build errors.
keywords:
  - repository name
  - repository URL
  - application configuration
  - source provider
  - synchronization
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Update the name of your repository

When you create an application, a repository is automatically generated for it based on
[default naming conventions](./creating-new-application.md).

If you later rename that repository in your provider (for example, GitHub), you must update the
application’s `repository_url` in nullplatform to match the new repository path.

If you don’t update it, actions like creating a new build will fail with an error similar to:

```
error: 'could not get the app: repository: <your-repo-url>'
```

Updating the repository URL ensures the platform can continue syncing and tracking your application correctly.

## Update the repository URL

Follow these steps to update the repository URL after renaming it in your provider.

1. **Rename the repository** in your provider (for example, GitHub).  
   For example: `https://github.com/acme-corp/billing-api` → `https://github.com/acme-corp/checking-api`

2. **Update the repository URL** using the [Application API](/docs/api/application-update) to match the new URL. 

<Tabs
defaultValue="change-repo-name-cli"
values={[
{ label: 'CLI', value: 'change-repo-name-cli' },
{ label: 'cURL', value: 'change-repo-name-curl' },
]}>
<TabItem value="change-repo-name-cli">
```bash
np application patch
  --id 123
  --body '{
    "repository_url": "https://github.com/crypto-inc/accounting-checking-api"
  }'
```
</TabItem>
<TabItem value="change-repo-name-curl">
```bash
curl -L -X PATCH 'https://api.nullplatform.com/application/123' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>' \
-d '{
  "repository_url": "https://github.com/crypto-inc/accounting-checking-api"
}'
```
</TabItem>
</Tabs>


:::tip Keep your repository in sync
Ensure the `repository_url` value exactly matches your new repository location.
This allows nullplatform to continue tracking commits, linking builds, and maintaining a proper connection with your source code.
:::


## Related resources

- [Create a new application](creating-new-application.md)
- [Customize repository naming patterns](naming-patterns.md)
- [Application settings](application-settings.md)
