```py
# Put your Space to sleep after 1h of inactivity
>>> api.set_space_sleep_time(repo_id=repo_id, sleep_time=3600)
```  
Note: if you are using a 'cpu-basic' hardware, you cannot configure a custom sleep time. Your Space will automatically
be paused after 48h of inactivity.  
**Bonus: set a sleep time while requesting hardware**  
Upgraded hardware will be automatically assigned to your Space once it's built.  
```py