---
title: "Publish a single sync item"
method: POST
path: "/sync/items/{itemId}/publish"
tags: ["sync"]
---

# Publish a single sync item

`POST /sync/items/{itemId}/publish`

Commits and pushes a single sync item to the remote repository

## Path parameters

- `itemId` string, required

## Query parameters

- `remoteNode` string

## Request body

- SyncPublishRequest — Request to publish a sync item
  - `message` string — Commit message
  - `force` boolean — Force publish even with conflicts

## Response `200`

Sync item published successfully

- SyncResultResponse — Result of a sync operation
  - `success` boolean, required
  - `message` string
  - `synced` string[] — Sync item IDs that were synced
  - `deleted` string[] — Sync item IDs deleted locally after remote deletion
  - `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

- `404` — Sync item not found
- `409` — Conflict detected
- `default` — Unexpected error

## Changes

- **2026-08-30** (v1) `9fcb8e054188` — 1 info
  - added the optional property `deleted` to the response with the `200` status
- **2026-07-23** (v1) `75b8e91aaf57` — 6 warning
  - added the new `conflict` enum value to the `code` response property for the response status `404`
  - added the new `conflict` enum value to the `code` response property for the response status `default`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `404`
  - added the new `human_task_resume_failed` enum value to the `code` response property for the response status `default`
  - …2 more
- **2026-05-24** (v1) `8a2d5d3e9608` — 2 warning
  - added the new `rate_limited` enum value to the `code` response property for the response status `404`
  - added the new `rate_limited` enum value to the `code` response property for the response status `default`
- **2026-04-30** (v1) `50e1d517afc1` — 2 info
  - removed the `rate_limited` enum value from the `code` response property for the response status `404`
  - removed the `rate_limited` enum value from the `code` response property for the response status `default`

[Change history](https://skmtc.dev/dagucloud/apis/dagu/changes/sync/items/:itemId/publish/post.md)

---

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