---
title: "Get repository ruleset history"
method: GET
path: "/repos/{owner}/{repo}/rulesets/{ruleset_id}/history"
tags: ["repos"]
---

# Get repository ruleset history

`GET /repos/{owner}/{repo}/rulesets/{ruleset_id}/history`

Get the history of a repository ruleset.

## Path parameters

- `owner` string, required
- `repo` string, required
- `ruleset_id` integer, required

## Query parameters

- `per_page` integer
- `page` integer

## Response `200`

Response

- RulesetVersion[]
  - `version_id` integer, required — The ID of the previous version of the ruleset
  - `actor` object, required — The actor who updated the ruleset
    - `id` integer
    - `type` string
  - `updated_at` string, date-time, required

## Other responses

- `404` — Resource not found
- `500` — Internal Error

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
