def METHOD_NAME(nr_json):
    """Update name request with nr_json."""
    auth_url = current_app.config.get('NAMEX_AUTH_SVC_URL')
    username = current_app.config.get('NAMEX_SERVICE_CLIENT_USERNAME')
    secret = current_app.config.get('NAMEX_SERVICE_CLIENT_SECRET')
    namex_url = current_app.config.get('NAMEX_SVC_URL')
    # Get access token for namex-api in a different keycloak realm
    auth = requests.post(auth_url, auth=(username, secret), headers={
        'Content-Type': 'application/x-www-form-urlencoded'}, data={'grant_type': 'client_credentials'})
    # Return the auth response if an error occurs
    if auth.status_code != 200:
        return auth.json()
    token = dict(auth.json())['access_token']
    # Perform update proxy call using nr number (e.g. NR 1234567)
    nr_response = requests.put(namex_url + 'requests/' + nr_json['nrNum'], headers={
        'Content-Type': 'application/json',
        'Authorization': 'Bearer ' + token
    }, json=nr_json)
    return nr_response