Skip to main content
PATCH
Error

Authorizations

Authorization
string
header
required

API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.

Path Parameters

repositoryId
string<uuid>
required

UUID of the repository. Use the id field of a repository from listRepositories.

Body

application/json
pr_review_enabled
boolean

When true, Strix reviews pull requests opened in 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).

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.

Repository metadata stored by Strix. Branch selection belongs to individual scans, schedules, and PR reviews; this object does not resolve a provider URL or default branch.

id
string<uuid>
required
organization_id
string
required
full_name
string
required
created_at
string<date-time>
required
provider
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
open_issue_count
integer

The number of active findings (open, in_progress, snoozed) that are attributed to this asset. Dependency findings are not counted.

open_issues
object

The same active findings as open_issue_count, grouped by severity.