Save and Test Warm Hook
Environments
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
Save and Test Warm 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 save and execute