Sample - GitHub REST API
GET/orgs/{org}/rulesets/{ruleset_id}/history/{version_id}

Get an organization ruleset version

Retrieves a specific historical version of an organization ruleset. Use org, ruleset_id, and version_id to identify the organization, ruleset, and version to retrieve.

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

3 parameters
orgstringrequired
The organization name; matching is not case sensitive.
ruleset_idintegerrequired
The integer identifier of the organization ruleset.
version_idintegerrequired
The integer identifier of the historical ruleset version.

3 status codes
200Returns the requested historical ruleset version, including its `version_id`, updating `actor`, `updated_at` timestamp, and `state`.
version_idintegerrequired
The ID of the previous version of the ruleset
actorobjectrequired
The actor who updated the ruleset
updated_atstringrequired
stateobjectrequired
The state of the ruleset version
404Returned when the organization, ruleset, or version cannot be found.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
500Returned when an internal server error occurs.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 404 is returned when the organization, ruleset, or version cannot be found. A 500 is returned when an internal error occurs. ruleset_id and version_id must be integer identifiers.