[Bug]: PATCH /applications/{uuid} rejects documented github_app_uuid field
Description and Error Message
PATCH /applications/{uuid} documents github_app_uuid as a supported field in the generated OpenAPI schema, but the live API rejects it:
HTTP 422
{
"message": "Validation failed.",
"errors": {
"github_app_uuid": ["This field is not allowed."]
}
}This prevents changing an existing application's installed GitHub App source through the API. A practical case is transferring a private repository between GitHub organizations where both organizations already have GitHub App sources configured in Coolify. git_repository can be changed, but the application remains attached to the previous GitHub App source_id, so the new private repository cannot be fetched or receive the correct webhooks.
I reproduced this against a disposable, undeployed application and deleted the test application afterwards.
The source-level mismatch is in ApplicationsController::update_by_uuid: the PATCH OpenAPI schema contains github_app_uuid, but the method's $allowedFields list omits it. The mismatch is present in v4.3.23 and current main.
Expected Behavior
PATCH /applications/{uuid}accepts the documentedgithub_app_uuidfield.- Coolify resolves the UUID to an accessible installed GitHub App.
- The application's source relation is updated to that GitHub App while preserving the existing application UUID, environment variables, domains, storage, and deployment configuration.
- Read-back shows the new
source_idand a subsequent deployment uses the new GitHub App installation.
Steps to Reproduce
- Configure two private GitHub App sources in Coolify, for example one for organization A and one for organization B.
- Create an application using organization A's GitHub App source.
- Transfer or select a private repository under organization B.
- Send:
PATCH /api/v1/applications/{application_uuid}
Content-Type: application/json
Authorization: Bearer <token>
{
"github_app_uuid": "<organization-B-github-app-uuid>",
"git_repository": "https://github.com/organization-B/repository",
"git_branch": "main"
}- Observe HTTP 422 with
github_app_uuid: This field is not allowed. - As a control, PATCH only
git_repository; it returns HTTP 200, but the application remains connected to organization A's source.
Example Repository URL
Not repository-specific. Reproduced using private GitHub repositories and a disposable Coolify application.
Coolify Version
v4.3.23. The same OpenAPI/controller mismatch is also present on current main as of September 25, 2026.
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
Host operating system was not required to reproduce this API validation issue.
Screenshots / Visuals
Not applicable; the JSON response above is the complete observed error.
Additional Information
Related but distinct issues:
- #10225 concerns changing source type through the UI.
- #10227 concerns deleting a GitHub App source linked to applications.
This report concerns the API contract mismatch for changing one installed GitHub App source to another. The issue is particularly costly for production applications because delete/recreate changes the application UUID and can require careful migration of UUID-derived labels and persistent-volume configuration.
Source: coollabsio/coolify