Fix posting to api