---
title: "Update pull request creation cap for an org"
method: PATCH
path: "/orgs/{org}/interaction-limits/pulls/creation-cap"
tags: ["interactions"]
---

# Update pull request creation cap for an org

`PATCH /orgs/{org}/interaction-limits/pulls/creation-cap`

Updates the pull request creation cap for an organization. The cap limits the total number
of open pull requests a user can have across all public repositories in the organization
at one time.

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

## Path parameters

- `org` 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/github-v3-rest-api-3.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-3/versions/dc0584ac4e13/schema)
