---
title: "Update Git sync configuration"
method: PUT
path: "/sync/config"
tags: ["sync"]
---

# Update Git sync configuration

`PUT /sync/config`

Updates the Git sync configuration

## Query parameters

- `remoteNode` string

## Request body

- SyncConfigUpdateRequest — Request to update Git sync configuration
  - `enabled` boolean
  - `repository` string
  - `branch` string
  - `path` string
  - `auth` SyncAuthConfig — Git authentication configuration
    - `type` 'token' | 'ssh', required
    - `token` string — Personal access token (write-only)
    - `sshKeyPath` string — Path to SSH private key
  - `autoSync` SyncAutoSyncConfig — Auto-sync configuration
    - `enabled` boolean, required
    - `onStartup` boolean, required
    - `interval` integer, required — Sync interval in seconds
  - `pushEnabled` boolean
  - `commit` SyncCommitConfig — Commit configuration
    - `authorName` string
    - `authorEmail` string

## Response `200`

Configuration updated successfully

- SyncConfigResponse — Git sync configuration
  - `enabled` boolean, required
  - `repository` string
  - `branch` string
  - `path` string
  - `auth` SyncAuthConfig — Git authentication configuration
    - `type` 'token' | 'ssh', required
    - `token` string — Personal access token (write-only)
    - `sshKeyPath` string — Path to SSH private key
  - `autoSync` SyncAutoSyncConfig — Auto-sync configuration
    - `enabled` boolean, required
    - `onStartup` boolean, required
    - `interval` integer, required — Sync interval in seconds
  - `pushEnabled` boolean
  - `commit` SyncCommitConfig — Commit configuration
    - `authorName` string
    - `authorEmail` string

## Other responses

- `default` — Unexpected error

---

[API](https://skmtc.net/dagucloud/apis/dagu.md) · [All operations](https://skmtc.net/dagucloud/apis/dagu/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dagucloud/dagu/revisions/93cc41f2018a/schema)
