---
title: "Replace relationships between a Node and its affiliated Institutions"
method: PATCH
path: "/nodes/{node_id}/relationships/institutions/"
tags: ["Nodes"]
---

# Replace relationships between a Node and its affiliated Institutions

`PATCH /nodes/{node_id}/relationships/institutions/`

Replace all existing affiliated institutions for a node with a new set of institutions.
#### Permissions
 - The authenticated user must have admin permissions on the node.

#### Request Body
 - A `data` array containing the new list of institution resource identifier objects (`type` and `id`).

#### Returns
 - The updated list of affiliated institutions for the node.

## Path parameters

- `node_id` string, required

## Request body

- object
  - `data` object[]
    - `type` 'institutions', required — Must be `institutions`.
    - `id` string, required — The unique identifier of the institution.

## Response `200`

Successfully replaced affiliated institutions for 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 institutions for 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)
