---
title: "create rule"
method: PUT
path: "/api/{env}/traffic/accesslog"
tags: ["TrafficAccesslog"]
---

# create rule

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

create rule

## Request body

- ModelAccesslog
  - `accesslog` string, required
  - `application` string, required

## 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)
