Workers creation for static site via API

Hi I'm trying to create a worker via the API and connecting a GitHub repository to automatically deploy like I can do via the UI. I don't see how it's possible though, there is no source in the request body like there is in pages creation. Is this possible right now or not yet? Thanks
Was this page helpful?