Nodes
Add relationships between a Node and Subjects
Changed onAdd new subject relationships to a node, keeping the existing subjects intact.
Permissions - The authenticated user must have write permissions on the node.
Request Body - A data array containing additional subject resource identifier objects to be added.
Returns - The updated list of subject relationships for the node.
post/nodes/{node_id}/relationships/subjects/
Request
- Base URLhttps://api.test.osf.io/v2
- URLhttps://api.test.osf.io/v2/nodes/{node_id}/relationships/subjects/
- Authnone declared
Path parameters
node_idstring required
The unique identifier of the node.
Request body
Example request
{
"data": [
{
"type": "subjects",
"id": "ghi789"
}
]
}Response
Successfully added subjects to the node.
Changes
- info
added the non-success response with the status
- info