post endpoint fix