Sample - GitHub REST API
GET/orgs/{org}/interaction-limits/pulls/creation-cap

Get pull request creation cap for an org

Gets the pull request creation cap configuration 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 view the cap configuration.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

1 parameter
orgstringrequired
The organization name. The name is not case sensitive.

4 status codes
200Response
enabledbooleanrequired
Whether the pull request creation cap is enabled
max_open_pull_requestsintegerrequired
The maximum number of open pull requests a user can have at one time
403Forbidden
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Resource not found
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
405Method Not Allowed
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned: Forbidden. A 404 is returned: Resource not found. A 405 is returned: Method Not Allowed.