---
title: "Api Conditions Partial Update 2"
method: PATCH
path: "/api/conditions/{condition_id}/"
tags: ["workflows"]
---

# Api Conditions Partial Update 2

`PATCH /api/conditions/{condition_id}/`

PATCH handler with superadmin lock and field protection.

Checks:
1. Object lock (is_managed=True -> non-superadmins can't modify)
2. Field protection (non-superadmins can't modify specific fields)

## Path parameters

- `condition_id` string, required

## Headers

- `Authorization` string, required

## Request body

- PatchedAutomationConditionUpdateRequest — Serializer for updating existing automation conditions
  - `id` string
  - `unique_organization_id` string — Organization identifier
  - `name` string — Human-readable name for the condition
  - `description` string — Description of what this condition does
  - `condition_policy` object — 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)
