---
title: "Update a project's Git auto-deploy settings"
method: PUT
path: "/projects/{id}/git-deploy-settings"
tags: ["Projects", "Git Connections"]
---

# Update a project's Git auto-deploy settings

`PUT /projects/{id}/git-deploy-settings`

## Request

- Base URL: `https://api.volcano.dev`
- URL: `https://api.volcano.dev/projects/{id}/git-deploy-settings`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

Full replace of the project's Git auto-deploy settings: what a push to
the connected repo's production branch deploys.

Connecting a repository sets auto_deploy_enabled and deploy_functions
to true for a project that has never called this endpoint, so a push
deploys without any further setup. Once these settings have been saved
here they are the project's own: connecting, rebinding, disconnecting
and reconnecting all leave them untouched, including when they were
saved before any repository was connected. Frontend settings are off
until set here; the frontend need not exist when they are saved, since
frontend_name is resolved at deploy time.

## Path parameters

- `id` string, uuid, required

## Request body

- UpdateProjectGitDeploySettingsRequest: Full replace of a project's Git auto-deploy settings.
  - `auto_deploy_enabled` boolean, required
  - `deploy_functions` boolean, required
  - `frontend_name` string: Frontend to deploy on push. Omit or empty to deploy no frontend.
  - `frontend_app_root` string: App root the frontend builds from. Requires frontend_name; omit for the repo root.

## Response `200`

The project's updated Git auto-deploy settings

- ProjectGitDeploySettings: A project's GitHub auto-deploy settings: what a push to the connected repo's production branch deploys. All settings are default-off.
  - `auto_deploy_enabled` boolean, required: Whether a production-branch push triggers a deployment.
  - `deploy_functions` boolean, required: Whether the repo's functions are deployed on push.
  - `frontend_name` string: Name of the frontend to build and deploy on push. Omitted when no frontend is deployed. Resolved at deploy time; need not exist yet.
  - `frontend_app_root` string: App root (subdirectory) the frontend builds from. Omitted for the repo root.
  - `updated_at` string, date-time, required: When the settings were last saved, or last changed by connecting a repository. Other changes to the project leave it alone. Settings a connection turned on before Volcano began tracking this report the project's last change before then; settings never saved or changed report when the project was created.

## Other responses

- `400`: Malformed request body, or frontend_app_root without frontend_name
- `401`: Unauthorized - invalid or missing token
- `403`: Project not owned by the caller
- `404`: Project not found
- `409`: A Git source transition is pending, or this change would remove deploy coverage after Git has taken over
- `500`: Failed to update project git deploy settings

## Changes

- **2026-10-07** `23e7875e7c4c`: 1 info
  - the endpoint scheme security `ProjectAccessToken` was added to the API
- **2026-09-19** `3a6f365f3f35`: 7 breaking, 12 info
  - added the new path request parameter `id`
  - the response's body type changed from no type to `object` for status `400`
  - the response's body type changed from no type to `object` for status `401`
  - the response's body type changed from no type to `object` for status `403`
  - …15 more
- **2026-09-04** `c2ec82fb8ce8`: 1 info
  - added the non-success response with the status `409`
- **2026-08-27** `bb44e98aba2e`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/volcano-api/changes/projects/:id/git-deploy-settings/put.md)

---

[API](https://skmtc.dev/kong/apis/volcano-api.md) - [All operations](https://skmtc.dev/kong/apis/volcano-api/llms.txt) - [OpenAPI document](https://skmtc.dev/kong/apis/volcano-api/revisions/84c4488f91e9?raw)
