---
title: "Link Registrations to Collection"
method: POST
path: "/collections/{collection_id}/linked_registrations/relationships/"
tags: ["Collections"]
---

# Link Registrations to Collection

`POST /collections/{collection_id}/linked_registrations/relationships/`

## Request

- Base URL: `https://api.test.osf.io/v2`
- URL: `https://api.test.osf.io/v2/collections/{collection_id}/linked_registrations/relationships/`
- Auth: none declared
- TypeScript: <https://skmtc.dev/osf/apis/osf-apiv2-documentation/docs/collections/:collection_id/linked_registrations/relationships/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allow users to a add a registration to a collection by issuing a POST request.
#### Permissions
This returns all public registrations associated with this collection.
#### Returns
Returns a JSON object containing `data` and `links` keys.

The `data` key contains an array of comment objects. Each resource in the array is a separate comment object.

The `links` key contains a dictionary of links that can be used for [pagination](#tag/Pagination).

## Path parameters

- `collection_id` string, required

## Request body

- object

## Response `201`

Created

## Changes

- **2021-07-11** `20af37407822`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/osf/apis/osf-apiv2-documentation/changes/collections/:collection_id/linked_registrations/relationships/post.md)

---

[API](https://skmtc.dev/osf/apis/osf-apiv2-documentation.md) - [All operations](https://skmtc.dev/osf/apis/osf-apiv2-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/osf/apis/osf-apiv2-documentation/revisions/3c5164c707eb?raw)
