Update location API endpoint