---
title: "Enable or disable Vercel CI for a connected repository"
method: PATCH
path: "/v1/vercel-ci/repository-settings"
tags: ["vercel-ci"]
---

# Enable or disable Vercel CI for a connected repository

`PATCH /v1/vercel-ci/repository-settings`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v1/vercel-ci/repository-settings`
- Auth: HTTP bearer

Update Repository Settings

## Query parameters

- `provider` 'bitbucket' | 'cursor-origin' | 'github' | 'gitlab' | 'vercel', required
- `organizationId` string, required
- `repository` string, required
- `teamId` string
- `slug` string

## Request body

- object
  - `ciEnabled` boolean, required

## Response `200`

Successfully updated the repository settings.

- object
  - `provider` union, required
    - string
    - string
    - string
    - string
    - string
  - `organizationId` string, required
  - `repository` string, required
  - `ciEnabled` boolean, required
  - `ciEnabledAt` number
  - `updatedAt` number

## Other responses

- `400`: One of the provided values in the request body is invalid. One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `409`
- `410`
- `429`
- `500`

## Changes

- **2026-10-10** `32399b3ed273`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/vercel/apis/api/changes/v1/vercel-ci/repository-settings/patch.md)

---

[API](https://skmtc.dev/vercel/apis/api.md) - [All operations](https://skmtc.dev/vercel/apis/api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/api/revisions/4a06e85c2848?raw)
