---
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.

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
