How to Update route of a specific worker via API

Is there any way to update the route of a cloudflare worker via API.

I can see the documentation having the create route update route and delete route API ok but those are just for the zone but not for the specific worker.
Was this page helpful?