v1

latestOpenAPI 3.1.02026-07-22100167210.7 KB
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/v1/environments/{environmentId}/warm-hooks/save-test

Path parameters

environmentIdstring required

Environment UUID, or the literal string global.

Request body

contentstring required

Shell script to save and execute

Response

Warm hook saved (test result included in body)