@must_be_valid_project  # injects project
@must_have_permission('write')
@must_not_be_registration
def project_add_tag(auth, node, **kwargs):

    data = request.get_json()
    tag = data['tag']
    if tag:
        try:
            node.add_tag(tag=tag, auth=auth)
            return {'status': 'success'}, http.CREATED
        except __HOLE__:
            return {'status': 'error'}, http.BAD_REQUEST
dataset/ETHPy150Open CenterForOpenScience/osf.io/website/project/views/tag.py/project_add_tag