Nodes
Replace relationships between a Node and its affiliated Institutions
Changed onReplace 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.
patch/nodes/{node_id}/relationships/institutions/
Request
- Base URLhttps://api.test.osf.io/v2
- URLhttps://api.test.osf.io/v2/nodes/{node_id}/relationships/institutions/
- Authnone declared
Path parameters
node_idstring required
The unique identifier of the node.
Request body
Example request
{
"data": [
{
"type": "institutions",
"id": "cos"
}
]
}Response
Successfully replaced affiliated institutions for the node.
Changes
- info
added the non-success response with the status
- info