Create Workflow via API with Approval stage

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


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?