Update the name of your repository
When you create an application, a repository is automatically generated for it based on default naming conventions.
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.
-
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 -
Update the repository URL using the Application API to match the new URL.
- CLI
- cURL
np application patch
--id 123
--body '{
"repository_url": "https://github.com/crypto-inc/accounting-checking-api",
}'
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",
}'
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.