@must_have_permission(WRITE)
@must_not_be_registration
def add_pointers(auth, node, **kwargs):
    """Add pointers to a node.

    """
    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 __HOLE__:
        raise HTTPError(http.BAD_REQUEST)

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