---
title: "Add relationships between a Node and Subjects"
method: POST
path: "/nodes/{node_id}/relationships/subjects/"
tags: ["Nodes"]
---

# Add relationships between a Node and Subjects

`POST /nodes/{node_id}/relationships/subjects/`

Add new subject relationships to a node, keeping the existing subjects intact.
#### Permissions - The authenticated user must have write permissions on the node.
#### Request Body - A `data` array containing additional subject resource identifier objects to be added.
#### Returns - The updated list of subject relationships for the node.

## Path parameters

- `node_id` string, required

## Request body

- object
  - `data` object[]
    - `type` 'subjects', required — Must be `subjects`.
    - `id` string, required — The unique identifier for the subject.

## Response `200`

Successfully added subjects to the node.

## Other responses

- `400` — Bad Request. The submitted data is invalid.
- `401` — Unauthorized. Authentication is required.
- `403` — Forbidden. You do not have permission to modify subjects on this node.
- `404` — Not Found. No node matches the given ID.

---

[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)
