Nodes
Replace relationships between a Node and its linked Nodes
Changed onReplace 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 URLhttps://api.test.osf.io/v2
- URLhttps://api.test.osf.io/v2/nodes/{node_id}/relationships/linked_nodes/
- Authnone 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
- info
added the non-success response with the status
- info