Skip to main content
POST
Save warm hook

Authorizations

Authorization
string
header
required

Organization or personal API key from Settings → API Keys.

Headers

X-Replicas-Api-Version
enum<string>

API version. 2026-10-07 returns snake_case responses. See versioning.

Available options:
2026-10-07

Path Parameters

environment_id
string
required

Environment UUID.

Body

application/json
content
string
required

Shell script to persist and activate. Empty content clears the active warm hook.

Response

Warm hook saved and activated, or cleared when content is empty

warm_hook
object | null
required

The saved active warm hook, or null when the request cleared the active warm hook.