Skip to main content
PUT
Update repository guardrails

Authorizations

Authorization
string
header
required

Your ara_ API key from Settings > Ara API. Keys are capability-scoped: run, plugins:read, secrets:read, secrets:write, sessions:read, knowledge:read, repos:read, repos:write, reviews:read, reviews:write, analytics:read, org:read, org:write, attachments:read, attachments:write, plugins:write, guardrails:read, guardrails:write.

Path Parameters

orgId
string
required

Organization id or slug. Resolve it with GET /v3/self.

owner
string
required

Repository owner (user or organization).

repo
string
required

Repository name.

Query Parameters

provider
enum<string>
default:github

Source-control provider to use when the same repository path exists on more than one connected provider.

Available options:
github,
gitlab

Body

application/json

Per-repository automation guardrails. On update, every property is optional and only the supplied fields change.

auto_fix_new_issues
boolean
auto_audit_on_connect
boolean
pr_risk_assessment
boolean
auto_merge_prs
boolean
auto_merge_max_risk
enum<string>
Available options:
zero,
low,
medium,
high
auto_merge_require_no_blocking_findings
boolean
auto_merge_require_ara_authored
boolean
auto_merge_require_ci_green
boolean
auto_merge_require_ara_verify
boolean
auto_merge_require_migration_approval
boolean
auto_merge_review_context
enum<string>
Available options:
all_review_bots,
ara_review_bot_only
auto_merge_custom_prompt
string
auto_merge_protected_paths
string

Newline-separated glob patterns; changes touching a matching path require a standing human approval before an unattended merge. Lines starting with # are comments.

auto_merge_max_changed_lines
integer

Maximum total changed lines (additions plus deletions) an unattended merge may carry. 0 disables the limit.

Required range: x >= 0
auto_merge_delete_branch
boolean

Delete the source branch after an unattended merge. Fork branches and branches other open pull requests target are never deleted.

Response

The updated repository guardrails.

repo
string
guardrails
object

Per-repository automation guardrails. On update, every property is optional and only the supplied fields change.