---
title: "edit workspace git sync settings"
method: POST
path: "/w/{workspace}/workspaces/edit_git_sync_config"
tags: ["workspace"]
---

# edit workspace git sync settings

`POST /w/{workspace}/workspaces/edit_git_sync_config`

## Path parameters

- `workspace` string, required

## Request body

- object
  - `git_sync_settings` WorkspaceGitSyncSettings
    - `repositories` GitRepositorySettings[]
      - `script_path` string
      - `git_repo_resource_path` string, required
      - `use_individual_branch` boolean
      - `group_by_folder` boolean
      - `collapsed` boolean
      - `settings` object
        - `include_path` string[]
        - `include_type` GitSyncObjectType[]
        - `exclude_path` string[]
        - `extra_include_path` string[]
      - `exclude_types_override` GitSyncObjectType[]
      - `auto_pull` AutoPullSettings
        - `enabled` boolean, required
        - `mode` 'auto' | 'webhook' | 'polling'
        - `poll_interval_s` integer
        - `sync_forks` boolean
        - `webhook_id` integer
        - `webhook_secret` string
        - `webhook_url` string
        - `webhook_error` string
        - `last_synced_sha` object
        - `last_pull_status` AutoPullStatus
          - `synced_sha` string
          - `at` integer, required
          - `job_id` string, uuid
          - `success` boolean, required
          - `error` string
      - `promotion_open_prs` boolean
      - `fork_open_prs` boolean
      - `open_pr_error` string — server-owned, last failure opening a PR for a deploy branch of this repo

## Response `200`

status

- unknown

## Changes

> 176 revisions in range; 19 could not be searched.

- **2026-07-31** `84647911dbb7` — 2 info
  - added the new `datatablemigration` enum value to the request property `git_sync_settings/repositories/items/exclude_types_override/items/`
  - added the new `datatablemigration` enum value to the request property `git_sync_settings/repositories/items/settings/include_type/items/`
- **2026-07-30** `f1689efd1006` — 1 info
  - added the new optional request property `git_sync_settings/repositories/items/auto_pull/webhook_url`
- **2026-07-16** `d871cf918be2` — 4 info
  - added the new optional request property `git_sync_settings/repositories/items/auto_pull`
  - added the new optional request property `git_sync_settings/repositories/items/fork_open_prs`
  - added the new optional request property `git_sync_settings/repositories/items/open_pr_error`
  - added the new optional request property `git_sync_settings/repositories/items/promotion_open_prs`

[Change history](https://skmtc.dev/windmill/apis/windmill-api/changes/w/:workspace/workspaces/edit_git_sync_config/post.md)

---

[API](https://skmtc.dev/windmill/apis/windmill-api.md) · [All operations](https://skmtc.dev/windmill/apis/windmill-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/windmill/windmill-api/revisions/7b281701c340/schema)
