# Create new process definition using Rest Api

**URL:** <https://forum.flowable.org/t/create-new-process-definition-using-rest-api/1861>\
**Category:** Flowable Engine\
**Created:** [April 10, 2018, 5:45am UTC](https://forum.flowable.org/t/create-new-process-definition-using-rest-api/1861 "2018-04-10T05:45:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziwenzhao](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/ziwenzhao/32/491_2.png) [@ziwenzhao](https://forum.flowable.org/u/ziwenzhao)\
**Post date:** [April 10, 2018, 5:45am UTC](https://forum.flowable.org/t/create-new-process-definition-using-rest-api/1861/1 "2018-04-10T05:45:20Z")

</div>

Instead of using flowable-modeler to create a process definition, I want to use rest api.  
I only see create deployment API which might be useful. Are there some suggestions how to use rest api to create process definitions?

Regards,  
Ziwen

---

<div class="post-metadata">

**Author:** ![motorina0](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/motorina0/32/639_2.png) [@motorina0](https://forum.flowable.org/u/motorina0)\
**Post date:** [April 12, 2018, 11:38am UTC](https://forum.flowable.org/t/create-new-process-definition-using-rest-api/1861/2 "2018-04-12T11:38:45Z")

</div>

Hi Ziwen,

```
From my knowledge you can not dirrectly generate a process model using the REST API.

However you can use the Java API (`org.flowable.bpmn.model` package) to generate the model. Then build your own @RestController to expose the functionality.

```

br,  
Vlad
