Forums

Disable web app programatically?

Hey all,

I see that there is a way, using the "Disable" button, to stop my web app. However, I was wondering, is there a way to do this programmatically, such as from a deployment script or a git hook?

Thanks!

Yes, use that api endpoint https://help.pythonanywhere.com/pages/API/#apiv0userusernamewebappsdomain_namedisable