---
title: "Modify an existing rule."
method: PATCH
path: "/v2/rules/{index}"
tags: ["Personalization"]
---

# Modify an existing rule.

`PATCH /v2/rules/{index}`

Modify an existing rule at the specified index on the ruleset.

## Path parameters

- `index` integer, required

## Request body

- Action

## Response `200`

Successful Response

- unknown

## Other responses

- `400` — Provided index does not exist in ruleset
- `422` — Validation Error

---

[API](https://skmtc.net/ntropy/apis/ntropy-transaction-api.md) · [All operations](https://skmtc.net/ntropy/apis/ntropy-transaction-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ntropy/ntropy-transaction-api/versions/47be508488c1/schema)
