It's currently only possible to export a workflow by workflow ID using the API to export a published workflow. The challenge is that the workflow ID is different between tenants which requires different export scripts per tenant and therefore additional maintenance and change control of the deployment scripts. Using workflow ID is also prone to human error if the incorrect workflow ID is captured.
NW does not allow 2 workflows with the same name, therefore the idea is to provide an API end point to export published workflow by workflow name. This will ensure the same workflow by name is exported in each environment reliably. Alternatively an end point to retrieve workflow details by workflow name in order to retrieve the workflow ID which can be used with the existing export workflow by workflow ID end point.