Skip to main content
POST
Save Warm Hook

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Organization → Settings → API Keys. User-session JWTs are not accepted by /v1/replica endpoints.

Path Parameters

environmentId
string
required

Environment UUID, or the literal string global.

Body

application/json
content
string
required

Shell script to persist and activate

Response

Warm hook saved and activated

warm_hook
object
required

A warm hook — the shell script that runs while pre-warming workspaces for an environment.