v1
latestOpenAPI 3.1.02026-07-22100167210.7 KBEnvironments
Save Start Hook
Persists and activates the supplied script as the start hook for the environment. Empty content clears the active start hook. 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/v1/environments/{environmentId}/start-hooks/save
Path parameters
environmentIdstring required
Environment UUID, or the literal string global.
Request body
Response
Start hook saved and activated, or cleared when content is empty