---
title: "Conditions Update 2"
method: PUT
path: "/automations/conditions/{condition_id}/"
tags: ["automations"]
---

# Conditions Update 2

`PUT /automations/conditions/{condition_id}/`

PUT handler with superadmin lock and field protection.

Same as patch() - checks lock and field protection before delegating.

## Path parameters

- `condition_id` string, required

## Headers

- `Authorization` string, required

## Request body

- AutomationConditionUpdateRequest — Serializer for updating existing automation conditions
  - `id` string
  - `unique_organization_id` string, required — Organization identifier
  - `name` string, required — Human-readable name for the condition
  - `description` string — Description of what this condition does
  - `condition_policy` object, required — Complex condition rules and logic stored as JSON
  - `filter_set_id` string, nullable — Filter set identifier for log filtering
  - `time_step_minutes` integer, nullable — Time window in minutes for aggregation type conditions
  - `sampling_rate` number, double, nullable — Sampling rate for single log conditions (0.0 to 1.0)
  - `updated_by` integer, nullable

## Response `200`

- AutomationConditionUpdate — Serializer for updating existing automation conditions
  - `id` string
  - `unique_organization_id` string, required — Organization identifier
  - `name` string, required — Human-readable name for the condition
  - `description` string — Description of what this condition does
  - `condition_policy` object, required — Complex condition rules and logic stored as JSON
  - `filter_set_id` string, nullable — Filter set identifier for log filtering
  - `time_step_minutes` integer, nullable — Time window in minutes for aggregation type conditions
  - `sampling_rate` number, double, nullable — Sampling rate for single log conditions (0.0 to 1.0)
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `updated_by` integer, nullable

---

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