Nodes

Replace relationships between a Node and its linked Nodes

Changed on

Replace all existing linked nodes for a node with a new set of linked nodes.

Permissions - The authenticated user must have write permissions on the node.

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

Returns - The updated list of linked nodes for the node.

patch/nodes/{node_id}/relationships/linked_nodes/

Request

  • Base URL
    https://api.test.osf.io/v2
  • URL
    https://api.test.osf.io/v2/nodes/{node_id}/relationships/linked_nodes/
  • Auth
    none declared

Path parameters

node_idstring required

The unique identifier of the node.

Request body

Example request

{
  "data": [
    {
      "type": "nodes",
      "id": "abc123"
    },
    {
      "type": "nodes",
      "id": "def456"
    }
  ]
}

Response

Successfully replaced linked nodes for the node.

Changes