---
title: "Get enterprise ruleset version"
method: GET
path: "/enterprises/{enterprise}/rulesets/{ruleset_id}/history/{version_id}"
tags: ["enterprise-admin"]
---

# Get enterprise ruleset version

`GET /enterprises/{enterprise}/rulesets/{ruleset_id}/history/{version_id}`

Get a version of an enterprise ruleset.

## Path parameters

- `enterprise` string, required
- `ruleset_id` integer, required
- `version_id` integer, required

## Response `200`

Response

- RulesetVersionWithState — The historical version of a ruleset
  - `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
  - `state` object, required — The state of the ruleset version

## Other responses

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

---

[API](https://skmtc.net/github/apis/ghec.md) · [All operations](https://skmtc.net/github/apis/ghec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghec/revisions/8ae6d0c8716e/schema)
