Update endpoints_v2.py