api method changed to post