---
title: "POST /p2p/collections/sync-versions"
method: POST
path: "/p2p/collections/sync-versions"
tags: ["p2p"]
---

# POST /p2p/collections/sync-versions

`POST /p2p/collections/sync-versions`

Synchronize collection versions to the local node

## Request body

- object
  - `timeout` string
  - `versionIDs` string[]

## Response `200`

Collection synchronization completed successfully

## Other responses

- `400` — error
- `500` — error

## Changes

- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `peer_sync_collection_versions` removed and replaced with `sync_peer_collection_versions`
- **2025-11-18** `71d3fcfd8e8b` — 1 info
  - endpoint added
- **2025-06-02** `60812f5416c5` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/p2p/collections/sync-versions/post.md)

---

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