How to enable Route for default workers.dev when deploying Workers Script via API

I am considering deploying Workers Script using the API in the link below.
https://developers.cloudflare.com/api/operations/worker-script-upload-worker-module

The deployment itself is successful, but when I check Settings>Triggers>Routes of the deployed Script, [subdomain].workers.dev, which is normally set up & enabled automatically, is disabled.
https://developers.cloudflare.com/workers/configuration/routing/routes/#routes-with-workersdev

I would like to use workers.dev Routes even when deployed by Script via API.
I would like to know how to enable “workers.dev" Routes via API or if there is another more appropriate policy.
Interact with Cloudflare's products and services via the Cloudflare API
Cloudflare Docs
Routes allow users to map a URL pattern to a Worker. When a request comes in to the Cloudflare network that matches the specified URL pattern, your
Was this page helpful?