---
title: "Replace relationships between a Node and linked Registrations"
method: PATCH
path: "/nodes/{node_id}/relationships/linked_registrations/"
tags: ["Nodes"]
---

# Replace relationships between a Node and linked Registrations

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

Replace all existing linked registrations for a node with a new set of linked registrations.
#### Permissions
 - The authenticated user must have write permissions on the node.

#### Request Body - A `data` array containing the new list of registration resource identifier objects (`type` and `id`).
#### Returns - The updated list of linked registrations for the node.

## Path parameters

- `node_id` string, required

## Request body

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

## Response `200`

Successfully replaced linked registrations 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 linked registrations 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)
