---
title: "Update pull request creation cap for a repository"
method: PATCH
path: "/repos/{owner}/{repo}/interaction-limits/pulls/creation-cap"
tags: ["interactions"]
---

# Update pull request creation cap for a repository

`PATCH /repos/{owner}/{repo}/interaction-limits/pulls/creation-cap`

Updates the pull request creation cap for a repository. The cap limits the number
of open pull requests a user can have at one time.

Only users with admin access to the repository can configure the cap.

## Path parameters

- `owner` string, required
- `repo` string, required

## Request body

- object
  - `enabled` boolean, required — Whether the pull request creation cap is enabled
  - `max_open_pull_requests` integer — The maximum number of open pull requests a user can have at one time

## Response `200`

Response

- object
  - `enabled` boolean, required — Whether the pull request creation cap is enabled
  - `max_open_pull_requests` integer, required — The maximum number of open pull requests a user can have at one time

## Other responses

- `403` — Forbidden
- `404` — Resource not found
- `405` — Method Not Allowed
- `422` — Validation failed, or the endpoint has been spammed.

## Changes

- **2026-07-10** `6876c1d87d2d` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/github/apis/enterprise-cloud/changes/repos/:owner/:repo/interaction-limits/pulls/creation-cap/patch.md)

---

[API](https://skmtc.dev/github/apis/enterprise-cloud.md) · [All operations](https://skmtc.dev/github/apis/enterprise-cloud/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/github/enterprise-cloud/revisions/6020c72ba337/schema)
