---
title: "PATCH /rulesets/{namespace}/{slug}"
method: PATCH
path: "/rulesets/{namespace}/{slug}"
tags: ["rules"]
---

# PATCH /rulesets/{namespace}/{slug}

`PATCH /rulesets/{namespace}/{slug}`

Update rule metadata

## Path parameters

- `namespace` string, required
- `slug` string, required

## Request body

- object
  - `namespace` string
  - `slug` string
  - `title` string
  - `description` string
  - `isPrivate` boolean
  - `blockPublishOn` 'error' | 'warning' | 'info' | 'hint' | 'none'

## Response `200`

Default Response

- unknown

## Other responses

- `400` — Bad request
- `401` — No auth
- `403` — Forbidden
- `404` — Not found
- `422` — Invalid payload
- `500` — Uncaught error

## Changes

- **2026-08-07** `8dff1e93bc68` — 1 info
  - api operation id `patchrulesetsNamespaceSlug` removed and replaced with `patchRulesetsNamespaceSlug`

[Change history](https://skmtc.dev/scalar/apis/core/changes/rulesets/:namespace/:slug/patch.md)

---

[API](https://skmtc.dev/scalar/apis/core.md) · [All operations](https://skmtc.dev/scalar/apis/core/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/scalar/core/revisions/8dff1e93bc68/schema)
