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

# POST /p2p/collections

`POST /p2p/collections`

Add peer collections

## Request body

- string[]

## Response `200`

ok

## Other responses

- `400` — error

## Changes

- **2026-03-02** `8c167ee47363` — 1 info
  - api operation id `peer_collections_add` removed and replaced with `add_peer_collections`
- **2026-02-18** `81d2174fb82c` — 1 info
  - api operation id `peer_collections_create` removed and replaced with `peer_collections_add`
- **2026-02-02** `d5a0998a3202` — 1 info
  - api operation id `peer_collections_add` removed and replaced with `peer_collections_create`
- **2025-07-16** `46fc37694485` — 1 info
  - api operation id `peer_collection_add` removed and replaced with `peer_collections_add`
- **2025-06-02** `60812f5416c5` — 1 info
  - api operation id `add_peer_collections` removed and replaced with `peer_collection_add`

[Change history](https://skmtc.dev/sourcenetwork/apis/defradb-api/changes/p2p/collections/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)
