Restart a stopped Space from a Webhook?
Hi everyone,Are webhooks capable of restarting a related Space if it is stopped?Thanks in advance
2023-02-22T02:11:08Z
Hi@milyiyo, currently we don’t have a Webhook trigger event for when the Space is stopped or restarted. But it’s a good idea indeed.You can restart a stopped Space programmatically via our API or using ourhuggingface_hublibhuggingface.coHfApi ClientWe’re on a journey to advance and democratize artificial intelligence through open source and open science.Read more about ourWebhooksevents"repo"- Global events on repos. Possible values for the associatedaction:"create","delete","update","move"."repo.content"- Events on the repo’s content, such as new commits or tags. It triggers on new Pull Requests as well due to the newly created reference/commit. The associatedactionis always"update"."repo.config"- Events on the config: update Space secrets, update settings, update DOIs, disabled or not, etc. The associatedactionis always"update"."discussion"- Creating a discussion or Pull Request, updating the title or status, and merging. Possible values for the associatedaction:"create","delete","update"."discussion.comment"- Creating, updating, and hiding a comment. Possible values for the associatedaction:"create","update".
2023-02-22T15:56:09Z
Thanks@radames