@must_have_permission(WRITE)
@must_not_be_registration
def add_pointers(auth, node, **kwargs):
    node_ids = request.json.get('nodeIds')

    if not node_ids:
        raise HTTPError(http.BAD_REQUEST)

    nodes = [
        Node.load(node_id)
        for node_id in node_ids
    ]

    try:
        _add_pointers(node, nodes, auth)
    except ValueError:
        raise HTTPError(http.BAD_REQUEST)

    return {}
Add pointers to a node.
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/project/views/node.py/add_pointers