# Create Workflow via API with Approval stage

**URL:** <https://community.developer.atlassian.com/t/create-workflow-via-api-with-approval-stage/55737>\
**Category:** JSM Cloud\
**Tags:** workflow, rest-api\
**Created:** [February 8, 2022, 4:35pm UTC](https://community.developer.atlassian.com/t/create-workflow-via-api-with-approval-stage/55737 "2022-02-08T16:35:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelIlewicz](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@MichaelIlewicz](https://community.developer.atlassian.com/u/MichaelIlewicz)\
**Post date:** [February 8, 2022, 4:35pm UTC](https://community.developer.atlassian.com/t/create-workflow-via-api-with-approval-stage/55737/1 "2022-02-08T16:35:03Z")

</div>

Hi I would like to generate a workflow via the API that makes use of the JSM Approval feature. I have figured out that the configuration for the approval process is stored in the properties of the workflow step

 ![image](https://global.discourse-cdn.com/atlassiandeveloper/original/3X/0/d/0d32c8572b82bbc27d59249133f57ae4849a57b8.png)  
I have also figured out that I can set properties for statuses during the workflow creation, however, I also realized that I need to know the workflow transition ID of the transitions that should happen on approval and rejection. Also, I don’t know if configuring just the properties would be enough to get the feature to work. As far as I can see there does not seem to be a way to edit the workflow steps properties after the workflow has been created using the public API? Has anybody been able to create a workflow with the API and an approval stage?

---

<div class="post-metadata">

**Author:** ![CaterinaCurti](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/caterinacurti/32/42270_2.png) [@CaterinaCurti](https://community.developer.atlassian.com/u/CaterinaCurti)\
**Post date:** [June 7, 2023, 3:30am UTC](https://community.developer.atlassian.com/t/create-workflow-via-api-with-approval-stage/55737/2 "2023-06-07T03:30:11Z")

</div>

Hi @MichaelIlewicz,

I know it’s been some time since you posted this but I was looking at a similar request that came in recently ([this one](https://community.developer.atlassian.com/t/using-rest-api-for-forge-app-to-add-an-approval-step-to-a-workflow/69536)) and thought I should add a comment here as well.

There isn’t currently a way to achieve what you are looking for, but I found this suggestion for adding a REST API which would provide the ability to add properties for statuses.

Here is the link:

- [https://jira.atlassian.com/browse/JRACLOUD-62042](https://jira.atlassian.com/browse/JRACLOUD-62042)

Caterina
