Skip to main content
PUT
Set who runs an environment (browser session)

Authorizations

Authorization
string
header
required

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

Path Parameters

application_id
string
required
environment_id
string
required

Body

application/json

The whole layer: it replaces the stored one. Every field is required so an omitted field is never read as a cleared one.

level
enum<string> | null
required

The layer's level for every area without its own entry; null for none.

Available options:
you_run_it,
together,
ankra_runs_it
areas
Areas · object
required

Per-area levels keyed by area: keep_it_up, ship_changes, keep_it_safe, keep_costs_down, keep_it_current, fix_my_code.

limits
AutonomyLayerLimits · object
required

A layer's own limits. An omitted limit is inherited from the layer above; lower is stricter, and false is stricter for may_change_data.

Response

The stored layer

application_id
string
required
scope
enum<string>
required
Available options:
application,
environment
environment_id
string | null
required
level
enum<string> | null
required
Available options:
you_run_it,
together,
ankra_runs_it
areas
Areas · object
required

Per-area levels keyed by area: keep_it_up, ship_changes, keep_it_safe, keep_costs_down, keep_it_current, fix_my_code.

limits
AutonomyLayerLimits · object
required

A layer's own limits. An omitted limit is inherited from the layer above; lower is stricter, and false is stricter for may_change_data.

widened_by_admin
boolean
required

True when the layer asks for more than it inherits; only an organisation admin's write can store that.

updated_at
string<date-time>
required