Skip to main content
PUT
Change the cost autopilot policy (bearer twin)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

x-ankra-organisation-id
string

PAT organisation override.

Body

application/json

A partial policy write: a field left out keeps its value.

defaults
object

The environment kinds to change and their tiers; kinds left out keep theirs. Cannot be null.

notification_route_id
string<uuid> | null

A notification route of the organisation; null clears it.

quiet_hours
CostAutopilotQuietHours · object | null

null clears the quiet hours.

Response

Successful response

The organisation's cost autopilot policy and every live cluster's tier under it.

clusters
CostAutopilotCluster · object[]
required
defaults
object
required

The tier each environment kind defaults to; every kind is present.

environment_kinds
enum<string>[]
required
Available options:
production,
staging,
development,
preview,
unknown
is_set
boolean
required

False for an organisation that never set a policy: every kind is then Hands-off.

notification_route_id
string<uuid> | null
required

The route the autopilot's pre-notices go to; null for the organisation's default routing.

quiet_hours
CostAutopilotQuietHours · object | null
required

When the autopilot starts no change of its own; null for none.

The policy the Autopilot view offers to turn on.

tiers
CostAutopilotTier · object[]
required
updated_at
string<date-time> | null
required

Null until a policy is set.

updated_by
string | null
required

The Ankra user id of the last change; null until a policy is set.