Skip to main content
PATCH
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint. Include as Authorization: Bearer <token>.

Path Parameters

repositoryId
string<uuid>
required

Body

application/json
pr_review_enabled
boolean
pr_review_approvals_enabled
boolean | null

Tri-state per-repo override of the org PR review policy. true forces Strix to submit a GitHub approval on clean PRs for this repo, false forces it off, null inherits the org default (approve_clean_prs).

pr_review_non_blocking
boolean | null

Tri-state per-repo override of the org PR review policy. true forces findings to never block this repo's PRs (posted as comments only), false forces blocking on, null inherits the org default (block_on_findings).

pr_review_on_push
boolean | null

Tri-state per-repo override of the org PR review policy. true forces Strix to re-review this repo's PRs on every pushed commit, false forces it off (review only when the PR is opened), null inherits the org default (review_on_push).

tags
string[]

Replaces the repository's tags. Requires the Enterprise plan.

business_unit
string | null

Sets or clears the business_unit. Requires the Enterprise plan.

Response

Repository updated.

id
string<uuid>
required
organization_id
string
required
full_name
string
required
created_at
string<date-time>
required
provider
string
url
string
default_branch
string
tags
string[]

Enterprise asset labels used for RBAC scoping.

business_unit
string | null

Enterprise asset label used for RBAC scoping.

pr_review_enabled
boolean

Whether automated PR reviews are enabled for this repository.

pr_review_approvals_enabled
boolean | null

Tri-state per-repo override of the org PR review policy. true forces Strix to submit a GitHub approval on clean PRs for this repo, false forces it off, null inherits the org default (approve_clean_prs).

pr_review_non_blocking
boolean | null

Tri-state per-repo override of the org PR review policy. true forces findings to never block this repo's PRs (posted as comments only), false forces blocking on, null inherits the org default (block_on_findings).

pr_review_on_push
boolean | null

Tri-state per-repo override of the org PR review policy. true forces Strix to re-review this repo's PRs on every pushed commit, false forces it off (review only when the PR is opened), null inherits the org default (review_on_push).

last_scan_at
string<date-time> | null