Skip to main content
PUT
Update a repo setting

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
alerting_sns_topic_arn
string

The SNS topic ARN an "Alarm on this" pull request for this repository should name in a generated alarm's alarm_actions, when one already exists for this repository's AWS account and region. Left unset, that pull request creates its own topic and subscription the first time and reuses it (by name) after that.

allow_ci_config
boolean

Whether fixes may change CI configuration (.github/, .circleci/, .gitlab-ci.yml, Jenkinsfile and similar) inside path_prefixes. Off by default. Each such change opens as a draft pull request that names the CI files and is never merged by SRE Agent, and CI files are never pushed onto a pull request whose auto-merge is on. With this on, a fix may change CI configuration, and the repository's CI runs that change as soon as the branch is pushed, with the repository's secrets, before anyone reviews the pull request. Every way a fix starts can make such a change: fix requests, @sre-agent change, automatic investigation and self-healing pull requests, and revise-on-review.

auto_dispatch
boolean

true (the default) sends this repository's fix requests to its runner as soon as they are made. false waits for a person: every request, from any source (the webhook included), is created and its card says it is waiting, but nothing is sent until someone presses Send on the card (or, for a request with no card, in its Control Tower drawer). Applies to the whole repository.

branch
string

The branch this row applies to. Leave it out (or send null) for the all-branches row, which is what a repository with one fence wants.

ci_fallback_to_platform
boolean

For a repository on "opencode_ci": when no CI run starts within 5 minutes of the handover, send the same request to SRE Agent's own agent once, instead of failing it. false (the default) fails it, naming the likely causes. Applies to the whole repository.

environment
string

The environment this row describes, e.g. production. Optional.

fix_runner
string

Who executes this repository's fix requests: platform, opencode_ci, self_hosted. "platform" is SRE Agent's own agent and needs nothing installed. "opencode_ci" runs in your own CI. Included in the Business and Enterprise plans. It needs a workflow in the repository referencing the published package segfaultpw/sre-agent-opencode. "self_hosted" runs on your own machine. Included in the Business and Enterprise plans. It needs a runner registered for this organization. The value applies to the whole repository, so it moves every row the repository has.

path_prefix
string

One directory a proposed fix may change. Sending it replaces the whole list with that one directory. Answered when the fence has exactly one directory and null otherwise; read path_prefixes for the full list.

path_prefixes
string[]

The directories a proposed fix may change in this repository, relative to its root, for example ["services/api/", "services/web/"], or ["."] for the whole repository. At most 20. No entry may sit inside another, start with a slash or contain ..; CI configuration paths need allow_ci_config. Sending it replaces the whole list; [] clears it, and the directories are then detected from the repository's layout the first time a fix runs. Send path_prefixes or path_prefix, not both.

Maximum array length: 20
service
string

The alias SLIs, deploy events and fix requests may name this repository by. Optional: with no alias the repository's short name is used.

writable_extensions
string[]

The file suffixes a proposed fix may touch, each starting with a dot (".tf", ".tfvars.json"). Defaults to .tf, .tfvars, .yaml, .yml. At least one is required when the field is sent.

Response

Updated.