post_for method on api