---
title: "Publish selected sync items"
method: POST
path: "/sync/publish-all"
tags: ["sync"]
---

# Publish selected sync items

`POST /sync/publish-all`

Commits and pushes the specified sync item IDs. If itemIds is omitted, publishes all modified or untracked items.

## Query parameters

- `remoteNode` string

## Request body

- SyncPublishAllRequest — Request to publish selected sync items
  - `message` string — Commit message
  - `itemIds` string[] — Sync item IDs to publish. If omitted, all modified or untracked items are published.

## Response `200`

Publish completed successfully

- SyncResultResponse — Result of a sync operation
  - `success` boolean, required
  - `message` string
  - `synced` string[] — Sync item IDs that were synced
  - `modified` string[] — Sync item IDs that were modified
  - `conflicts` string[] — Sync item IDs with conflicts
  - `errors` SyncError[]
    - `itemId` string
    - `message` string, required
  - `timestamp` string, date-time, required

## 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)
