---
title: "update rule"
method: PUT
path: "/api/{env}/traffic/mock"
tags: ["TrafficMock"]
---

# update rule

`PUT /api/{env}/traffic/mock`

update rule

## Request body

- ModelMock
  - `group` string
  - `mock` string, required
  - `service` string, required
  - `version` string

## Response `200`

OK

- unknown

## Other responses

- `400` — Bad Request
- `500` — Internal Server Error

---

[API](https://skmtc.dev/apache/apis/dubbo-admin-api.md) · [All operations](https://skmtc.dev/apache/apis/dubbo-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/apache/dubbo-admin-api/revisions/3620d40f4941/schema)
