Save Start Hook
Environments
Save Start Hook
Persists and activates the supplied script as the start hook for the environment. Editing a start hook does not invalidate the warm pool — the new content is picked up automatically on the next claim, since start hooks run at workspace boot rather than during warming.
POST
Save Start Hook
Authorizations
API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.
Path Parameters
Environment UUID, or the literal string global.
Body
application/json
Shell script to persist and activate
Response
Start hook saved and activated
A start hook — the shell script that runs at workspace boot (after the warm sandbox is claimed) for an environment.