# Train models on sever in runtime

**URL:** <https://forum.rasa.com/t/train-models-on-sever-in-runtime/20351>\
**Category:** Rasa Open Source\
**Created:** [October 24, 2019, 11:16pm UTC](https://forum.rasa.com/t/train-models-on-sever-in-runtime/20351 "2019-10-24T23:16:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Elham](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@Elham](https://forum.rasa.com/u/Elham)\
**Post date:** [October 24, 2019, 11:16pm UTC](https://forum.rasa.com/t/train-models-on-sever-in-runtime/20351/1 "2019-10-24T23:16:14Z")

</div>

I’m using Rasa 1.2 and need to update my rasa model in runtime using the http server. I use /model/train endpoint to train my model but I have a couple of questions regarding that:

1. Is it possible to fix the name of newly trained model? Something similar as --fixed-model-name if I was to train it using the command line.
2. According to the documentation, for the payload of /model/train endpoint I need to provide the domain, config, nlu and stories all in plain text. Is there any way to pass just the file names for these fields in the payload and not the content of the file? If currently there is no way, is there any plan in near future to support this feature?

Thanks.

---

<div class="post-metadata">

**Author:** ![akelad](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/akelad/32/69_2.png) [@akelad](https://forum.rasa.com/u/akelad)\
**Post date:** [October 30, 2019, 10:03am UTC](https://forum.rasa.com/t/train-models-on-sever-in-runtime/20351/2 "2019-10-30T10:03:48Z")

</div>

Hey @Elham welcome to the community and sorry for the late reply.

1. No, that’s not possible at the moment.
2. I’m afraid at the moment you have to pass it in the format provided. You could use Rasa X to make this training process via API easier though
