import requests


def upload_record(data, headers, rdr_project_id):
    """ Upload a supplied record to the research data repository
    
    """
    request_url = f"https://api.figsh.com/v2/account/projects/{rdr_project_id}/articles"
    response = requests.post(request_url, headers=headers, json=data)

    return response.json()