I'm trying to create a new workflow:
POST: https://{org_url}.crm.dynamics.com/api/data/v8.2/workflows
Request body: {"name":"Test Process name", "category":4, "statecode":0, "statuscode":1, "istransacted":true, "triggeroncreate":true, "scope":4," runas":1, "triggerondelete":false, "asyncautodelete":false,"ismanaged":false,"businessprocesstype":0,"mode":0,"introducedversion":"1.0","iscrmuiworkflow":true,"processorder":100,"trustedaccess":false,"subprocess":false,"ondemand":false,"componentstate":0,"syncworkflowlogonfailure":false,"primaryentity":"opportunity","type":1,"createstage":40,"deletestage":40}
But getting the error 400: {"error":{"code":"0x80040203","message":"workflowstep"}}