Skip to main content
PUT
Update a deploy policy

Authorizations

Authorization
string
header
required

An sre_ak_* API key holding the api:admin scope (or api:config_read, which every write refuses with read_only_key).

Path Parameters

id
string
required

The resource's id.

Body

application/json
burn_rate_block_enabled
boolean

Hold a deploy while an SLO is burning its budget fast. On by default. Switched off, the gate still reports what it would have held for, as an advisory.

enabled
boolean

Whether the gate reads this policy at all. It resolves only enabled policies, so a disabled one gates nothing and the service falls back to the defaults.

error_budget_threshold
number

Hold a deploy while less than this percent of an SLO's error budget is left, 0 to 100. Defaults to 10, and 0 switches the budget block off.

incident_block_enabled
boolean

Hold a deploy while a critical incident affecting the service is open. On by default, and switched off it becomes an advisory in the same way.

service
string

The service whose deploys this policy gates, spelled as the deploy events and the gate API name it. One policy per service in an organization.

Response

Updated.