diff --git a/openedx/core/djangoapps/user_api/accounts/views.py b/openedx/core/djangoapps/user_api/accounts/views.py index c29e6abf57..b67e218ff1 100644 --- a/openedx/core/djangoapps/user_api/accounts/views.py +++ b/openedx/core/djangoapps/user_api/accounts/views.py @@ -450,7 +450,7 @@ class NameChangeView(APIView): return Response(status=status.HTTP_201_CREATED) else: return Response( - 'The name given was identical to the current name.', + {'new_name': 'The profile name given was identical to the current name.'}, status=status.HTTP_400_BAD_REQUEST )