repos

Update Repo

Update editable repo settings: name, default branch, exclude patterns, page-volume override, and the AI-explanation refresh policy.

short_id accepts either a snapshot short_id or the repo UUID, matching the resolution rules used by PATCH /repos/{short_id}/auto-sync.

Owner-only: enforced via user_repos. Does not trigger a re-index; that is a separate explicit action via POST /repos/{repo_id}/reindex.

patch/repos/{short_id}

Path parameters

short_idstring required

Request body

namestring nullable
default_branchstring nullable
exclude_patternsstring[] nullable
github_checks_enabledboolean nullable
max_file_pagesinteger nullable
prose_refresh'off' | 'manual' | 'auto' nullable
prose_daily_cap_centsinteger nullable

Response

Successful Response

idstring required
canonical_urlstring required
ownerstring required
namestring required
default_branchstring required
latest_known_head_shastring nullable
is_publicboolean required
file_countinteger nullable
last_checked_atstring date-time nullable
auto_sync_enabledboolean
github_checks_enabledboolean
last_webhook_atstring date-time nullable
last_polled_atstring date-time nullable
exclude_patternsstring[]
max_file_pagesinteger nullable
prose_refreshstring
prose_daily_cap_centsinteger
repowise_managedboolean
descriptionstring nullable
primary_languagestring nullable
starsinteger nullable
badge_detected_atstring date-time nullable

Changes

No recorded changes to this endpoint across all 1 revision of this API.