---
title: "Update Public Repo Flags"
method: PATCH
path: "/admin/repos/{repo_id}"
tags: ["admin"]
---

# Update Public Repo Flags

`PATCH /admin/repos/{repo_id}`

Set the curation / auto-sync flags on a public repo.

Shares ``repo_flags.apply_flags`` with ``PATCH /repos/{id}/managed`` so the
"curating a repo turns auto-sync on" rule has one implementation.

## Path parameters

- `repo_id` string, required

## Request body

- AdminFlagsRequest — Partial update. ``None`` leaves a flag alone rather than clearing it.
  - `repowise_managed` boolean, nullable
  - `auto_sync_enabled` boolean, nullable

## Response `200`

Successful Response

- RepoResponse
  - `id` string, required
  - `canonical_url` string, required
  - `owner` string, required
  - `name` string, required
  - `default_branch` string, required
  - `latest_known_head_sha` string, nullable
  - `is_public` boolean, required
  - `file_count` integer, nullable
  - `last_checked_at` string, date-time, nullable
  - `auto_sync_enabled` boolean
  - `github_checks_enabled` boolean
  - `last_webhook_at` string, date-time, nullable
  - `last_polled_at` string, date-time, nullable
  - `exclude_patterns` string[]
  - `max_file_pages` integer, nullable
  - `prose_refresh` string
  - `prose_daily_cap_cents` integer
  - `repowise_managed` boolean
  - `description` string, nullable
  - `primary_language` string, nullable
  - `stars` integer, nullable
  - `badge_detected_at` string, date-time, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/repowise/apis/repowise-hosted-api.md) · [All operations](https://skmtc.dev/repowise/apis/repowise-hosted-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/repowise/repowise-hosted-api/revisions/1e57283a9737/schema)
