Not able to train Rasa model api

Could anyone help me, with Rasa train api

Rasa app is hosted on an Ubuntu Server

We are trying to train rasa app through an api which executes " rasa train nlu " command on the server to train it The model is getting trained and the new trained model file is also created

The issue is when we call the model/parse api it is not recognizing the newly created intent

but if we train the rasa app manually through the shell on the ubuntu server by “rasa train nlu” it works and identifies the new intent correctly and the model/parse api recognizes the intent as well

So even though the rasa app is getting trained through the api why the intent recognition is not correct unless training it manually?

Could anyone help?

Now with Rasa’s train api mode/train getting 204 response from the server