---
title: "Update Rule"
method: PATCH
path: "/v2/user/analytics/{storeId}/rules/{ruleId}"
tags: ["Analytics - Rules"]
---

# Update Rule

`PATCH /v2/user/analytics/{storeId}/rules/{ruleId}`

## Path parameters

- `storeId` string, guid, required
- `ruleId` string, guid, required

## Request body

- UpdateRuleRequest — This update will replace the following values.
  - `ruleName` string, required — The name of the rule
  - `startUtcDate` string, date-time — Not required. The start validity utc date of the rule.
  - `endUtcDate` string, date-time — Not required. The end validity utc date of the rule

## Response `204`

Rule updated

## Other responses

- `400` — Filter does not exist or period on filter cannot be custom
- `401` — Store not allowed to use rules. Please upgrade your offer or contact us.
- `404` — Rule not found
- `409` — Rules for this store are currently running. Please try again later.
- `default` — Occurs when something goes wrong

---

[API](https://skmtc.net/beezup/apis/beezup-merchant-api.md) · [All operations](https://skmtc.net/beezup/apis/beezup-merchant-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/beezup/beezup-merchant-api/revisions/557b7feddf8a/schema)
