v56

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,4581,08113.3 MB
interactions

Update pull request creation cap for a repository

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.

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

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Request body

enabledboolean required

Whether the pull request creation cap is enabled

max_open_pull_requestsinteger

The maximum number of open pull requests a user can have at one time

Response

Response

enabledboolean required

Whether the pull request creation cap is enabled

max_open_pull_requestsinteger required

The maximum number of open pull requests a user can have at one time