Hooks

Save warm hook

Saves and activates the warm hook without testing it. Empty content removes it.

post/v1/environments/{environment_id}/warm-hooks/save

Request

  • Base URL
    https://api.replicas.dev
  • URL
    https://api.replicas.dev/v1/environments/{environment_id}/warm-hooks/save
  • Auth
    HTTP bearer

Path parameters

environment_idstring required

Environment UUID.

Headers

X-Replicas-Api-Version'2026-10-07'

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

Request body

contentstring 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

Changes

No recorded changes to this operation across all 1 revision of this API.