Skip to main content
PUT
/
v1
/
environments
/
{environmentId}
/
warm-pools
Enable or Disable Warm Pool
curl --request PUT \
  --url https://api.tryreplicas.com/v1/environments/{environmentId}/warm-pools \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true
}
'
{
  "warm_pool": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "environment_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "enabled": true,
    "target_size": 123,
    "updated_at": "2023-11-07T05:31:56Z",
    "ready_count": 123,
    "stale_count": 123,
    "warming_count": 123,
    "last_failure_at": "2023-11-07T05:31:56Z",
    "last_failure_reason": "<string>"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.replicas.dev/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key authentication. Obtain your API key from the Replicas dashboard under Settings > API Keys.

Path Parameters

environmentId
string
required

Environment UUID, or the literal string global.

Body

application/json
enabled
boolean
required

Whether the warm pool should be active

Response

Warm pool config updated

warm_pool
object
required

Warm pool configuration plus current pool counts.