DevZero Logo
DevZero

Update hibernation settings for a team

POST
/teams/{team_id}/hibernation-settings
/teams/{team_id}/hibernation-settings

Request Body

application/jsonRequired

update hibernation settings body

activity_hibernation_delayinteger

Time in minutes of inactivity after which pods belonging to this team will be hibernated

automatic_hibernation_timeinteger

Time in minutes since midnight at which pods belonging to this team will be hibernated

cluster_activity_hibernation_delayinteger

Time in minutes of inactivity after which clusters belonging to this team will be hibernated

cluster_automatic_hibernation_timeinteger

Time in minutes since midnight at which clusters belonging to this team will be hibernated

cluster_hibernation_strategystring

Cluster hibernation strategy

Value in: "none" | "time" | "activity"

hibernation_strategy
Required
string

Team hibernation strategy

Value in: "none" | "time" | "activity"

spending_limit_notifications_enabledboolean

Whether spending notifications are enabled for this team

team_monthly_spending_limitinteger

Spending limit this month in dollars for this team

Path Parameters

team_id
Required
string

Header Parameters

Authorization
Required
string

curl -X POST "https://api.devzero.io/backend/v0/teams/string/hibernation-settings" \
  -H "Authorization: string" \
  -H "Content-Type: application/json" \
  -d '{
    "activity_hibernation_delay": 0,
    "automatic_hibernation_time": 0,
    "cluster_activity_hibernation_delay": 0,
    "cluster_automatic_hibernation_time": 0,
    "cluster_hibernation_strategy": "none",
    "hibernation_strategy": "none",
    "spending_limit_notifications_enabled": true,
    "team_monthly_spending_limit": 0
  }'

OK

{
  "activity_hibernation_delay": 0,
  "automatic_hibernation_time": 0,
  "cluster_activity_hibernation_delay": 0,
  "cluster_automatic_hibernation_time": 0,
  "cluster_hibernation_strategy": "none",
  "hibernation_strategy": "none",
  "spending_limit_notifications_enabled": true,
  "team_monthly_spending_limit": 0
}