---
title: "Update idle rule by id"
method: PUT
path: "/idle-rules/{id}"
tags: ["idlerules"]
---

# Update idle rule by id

`PUT /idle-rules/{id}`

Update idle rule by id.

-  PERMISSIONS: `api_idlerule:update`

## Path parameters

- `id` string, required

## Request body

- IdleruleEditRequest — unresolved $ref

## Response `200`

OK

- IdleruleRule — unresolved $ref

## Other responses

- `400` — Bad Request
- `404` — Not Found

## Changes

- **2025-09-19** `10a1f7617754` — 2 breaking, 3 warning
  - the response's body type changed from `object` to no type for status `400`
  - the response's body type changed from `object` to no type for status `404`
  - removed the optional property `error` from the response with the `404` status
  - removed the optional property `errors` from the response with the `400` status
  - …1 more

[Change history](https://skmtc.dev/capensis/apis/canopsis-community-api/changes/idle-rules/:id/put.md)

---

[API](https://skmtc.dev/capensis/apis/canopsis-community-api.md) · [All operations](https://skmtc.dev/capensis/apis/canopsis-community-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/capensis/canopsis-community-api/revisions/bbc46dbdcc32/schema)
