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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
Request Body required
Section titled “ Request Body required ”object
Whether the pull request creation cap is enabled
The maximum number of open pull requests a user can have at one time
Examples
Example request body
{ "enabled": true, "max_open_pull_requests": 1}Responses
Section titled “ Responses ”Response
object
Whether the pull request creation cap is enabled
The maximum number of open pull requests a user can have at one time
Examples
Response
{ "enabled": true, "max_open_pull_requests": 1}Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Method Not Allowed
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Validation failed, or the endpoint has been spammed.
Validation Error
object
object
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ { "resource": "example", "field": "example", "message": "example", "code": "example", "index": 1, "value": [ "example" ] } ]}