# What is the use of the rest api POST /repository/models?

**URL:** <https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799>\
**Category:** Flowable Engine\
**Created:** [October 31, 2019, 6:14am UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799 "2019-10-31T06:14:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@Mohit](https://forum.flowable.org/u/Mohit)\
**Post date:** [October 31, 2019, 6:14am UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799/1 "2019-10-31T06:14:11Z")

</div>

Can any one in the group here explain what is the use of the POST /repository/models api. From modeler when create the process it call POST /flowable-modeler/app/rest/models but the when we call  
GET /repository/models api then it is not listing the model which is created from modeler and only listing the models created through the swagger POST rest api .  
Could you please tell me what is the difference between both.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [November 4, 2019, 2:21pm UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799/2 "2019-11-04T14:21:30Z")

</div>

This is a legacy endpoint (API). Earlier, generic models could be saved through the repository service. However, Flowable Modeler is a standalone tool now and doesn’t need any engine to run (which was the case before) and uses it’s own storage endpoints.

---

<div class="post-metadata">

**Author:** ![jyothsna](https://avatars.discourse-cdn.com/v4/letter/j/aca169/32.png) [@jyothsna](https://forum.flowable.org/u/jyothsna)\
**Post date:** [November 5, 2019, 9:07am UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799/3 "2019-11-05T09:07:33Z")

</div>

Even I’m facing the same issue whats the way to get the list of all models in flowable modeler??

---

<div class="post-metadata">

**Author:** ![Mohit](https://avatars.discourse-cdn.com/v4/letter/m/c68b51/32.png) [@Mohit](https://forum.flowable.org/u/Mohit)\
**Post date:** [November 5, 2019, 5:14pm UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799/4 "2019-11-05T17:14:44Z")

</div>

Then, can you please tell me how can we achieve process model to be saved but not published through flowable-rest?  
As with modeler it is very clear, create save and publish but here in flowable-rest there is one api called POST repository/deployment which is publishing the process i believe.

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [November 7, 2019, 9:25am UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799/5 "2019-11-07T09:25:14Z")

</div>

> [@Mohit](#):
>
> Then, can you please tell me how can we achieve process model to be saved but not published through flowable-rest?

No, that is not possible. What is your use case for this? Flowable-rest is about runtime execution, so it doesn’t have a way to only store something and not deploying it.

---

<div class="post-metadata">

**Author:** ![akki](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@akki](https://forum.flowable.org/u/akki)\
**Post date:** [September 8, 2020, 8:41am UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799/6 "2020-09-08T08:41:17Z")

</div>

If your models are deployed you can create Process Definition Query to get list of models.

---

<div class="post-metadata">

**Author:** ![akki](https://avatars.discourse-cdn.com/v4/letter/a/b9e5f3/32.png) [@akki](https://forum.flowable.org/u/akki)\
**Post date:** [September 8, 2020, 8:42am UTC](https://forum.flowable.org/t/what-is-the-use-of-the-rest-api-post-repository-models/4799/7 "2020-09-08T08:42:24Z")

</div>

Yes POST repository/deployment publishes the model and creates process definition.
