REST API endpoints for rule suites

Use the REST API to manage rule suites for organizations.

Note

Most endpoints use Authorization: Bearer <YOUR-TOKEN> and Accept: application/vnd.github+json headers, plus X-GitHub-Api-Version: 2026-03-10. Curl examples below omit these standard headers for brevity.

List organization rule suites

GET /orgs/{org}/rulesets/rule-suites

Lists suites of rule evaluations at the organization level.
For more information, see "Managing rulesets for repositories in your organization."

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X GET \
  https://api.github.com/orgs/ORG/rulesets/rule-suites

Response schema (Status: 200):

Array of objects:

Get an organization rule suite

GET /orgs/{org}/rulesets/rule-suites/{rule_suite_id}

Gets information about a suite of rule evaluations from within an organization.
For more information, see "Managing rulesets for repositories in your organization."

Parameters

Headers

Path and query parameters

HTTP response status codes

Code examples

Example

Request:

curl -L \
  -X GET \
  https://api.github.com/orgs/ORG/rulesets/rule-suites/RULE_SUITE_ID

Response schema (Status: 200):