api calling push sync with wrong method