---
title: "Add Metadata or Subjects to an Entity in a Collection"
method: POST
path: "/collections/{collection_id}/collected_metadata/{cgm_id}"
tags: ["Collections"]
---

# Add Metadata or Subjects to an Entity in a Collection

`POST /collections/{collection_id}/collected_metadata/{cgm_id}`

List of user created metadata for entities within a collection.
#### Permissions
To edit this collection a user must have collections write permissions
#### Returns
Returns a JSON object containing `data` and `links` keys.

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

## Path parameters

- `collection_id` string, required
- `cgm_id` string, required

## Request body

- object

## Response `201`

OK

---

[API](https://skmtc.net/osf/apis/osf-apiv2-documentation.md) · [All operations](https://skmtc.net/osf/apis/osf-apiv2-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/osf/osf-apiv2-documentation/versions/ca701048eb0d/schema)
