updated api, but still not working (400 bad request).