Collections
Link Registrations to Collection
Changed onThis endpoint allow users to a add a registration to a collection by issuing a POST request.
Permissions
This returns all public registrations associated with this collection.
Returns
Returns a JSON object containing data and links keys.
The data key contains an array of comment objects. Each resource in the array is a separate comment object.
The links key contains a dictionary of links that can be used for pagination.
post/collections/{collection_id}/linked_registrations/relationships/
Request
- Base URLhttps://api.test.osf.io/v2
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
collection_idstring required
A short id for that collection
Request body
object required
Example request
{
"data": [
{
"type": "linked_registrations",
"id": "guid0"
},
{
"type": "linked_registrations",
"id": "newid"
},
{
"type": "linked_registrations",
"id": "test2"
},
{
"type": "linked_registrations",
"id": "guid4"
}
]
}Response
Created
Changes
- info
endpoint added
- info