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, "scope":4," runas":1, "triggerondelete":false, "businessprocesstype":0,"mode":0 , "primaryentity":"opportunity","type":1,"createstage":40,"deletestage":40}
But getting the error 400: {"error":{"code":"0x80040203","message":"workflowstep"}}