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 Bodyrequired
Section titled “Request Bodyrequired”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
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Method Not Allowed
Basic Error
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Validation failed, or the endpoint has been spammed.
Validation Error
object
object
Examplegenerated
{ "message": "example", "documentation_url": "example", "errors": [ { "resource": "example", "field": "example", "message": "example", "code": "example", "index": 1, "value": [ "example" ] } ]}