Inspect

Update repository

Update a GitHub repository's settings. Requires repository management permission.

Base URL
PATCH
/api/v2/repositories/{repository_id}

Update a GitHub repository's settings. Requires repository management permission.

Authorization

bearerAuth repositories:write
headerAuthorizationBearer <token>

API key authentication. Use your API key as the bearer token.

Scope: repositories:write

Path Parameters

repository_id*string

Repository identifier

Request Body

application/json
  1. body

Omitted fields are unchanged.

name?string

Display name. Must not be empty.

Lengthlength <= 200
description?string
Lengthlength <= 2000
base_branch?string

Default branch. Must not be empty.

Lengthlength <= 200
ci_auto_fix_ignored_checks?array<>
Itemsitems <= 100
merge_queue?

Merge queue override. Returns 400 when the provider is not available.

automatic_reviews?Repositories.RepositoryAutomaticReviews
Value in"on""inspect""off"

Response Body

Updated repository

application/json
  1. response
data*

A repository configured in Inspect.

Example Request
curl -X PATCH 'https://app.inspect.com/api/v2/repositories/web' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "data": {    "id": "web",    "name": "web",    "description": "Acme customer dashboard and marketing site",    "organization": "acme",    "remote": "github",    "github_host": "github",    "base_branch": "main",    "auto_match_enabled": true,    "ci_auto_fix_ignored_checks": [      "codecov/patch"    ],    "merge_queue": {      "provider": "github"    },    "automatic_reviews": "on"  }}