v1
latestOpenAPI 3.1.02026-07-22100167210.7 KBEnvironments
Save and Test Warm Hook
Saves the supplied script as the active warm hook for the environment and runs it in an isolated sandbox. Always persists the new version; the response includes the test result so callers can decide whether to roll back. The endpoint takes 30–90 seconds to return because it spins up a real sandbox.
post/v1/environments/{environmentId}/warm-hooks/save-test
Path parameters
environmentIdstring required
Environment UUID, or the literal string global.
Request body
Response
Warm hook saved (test result included in body)