v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
workflows

Api Conditions Partial Update 2

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)
patch/api/conditions/{condition_id}/

Path parameters

condition_idstring required

Headers

Authorizationstring required

JWT access token or Respan API key

Request body

idstring
unique_organization_idstring

Organization identifier

namestring

Human-readable name for the condition

descriptionstring

Description of what this condition does

condition_policyobject

Complex condition rules and logic stored as JSON

filter_set_idstring nullable

Filter set identifier for log filtering

time_step_minutesinteger nullable

Time window in minutes for aggregation type conditions

sampling_ratenumber double nullable

Sampling rate for single log conditions (0.0 to 1.0)

updated_byinteger nullable

Response

idstring
unique_organization_idstring required

Organization identifier

namestring required

Human-readable name for the condition

descriptionstring

Description of what this condition does

condition_policyobject required

Complex condition rules and logic stored as JSON

filter_set_idstring nullable

Filter set identifier for log filtering

time_step_minutesinteger nullable

Time window in minutes for aggregation type conditions

sampling_ratenumber double nullable

Sampling rate for single log conditions (0.0 to 1.0)

created_atstring date-time required
updated_atstring date-time required
updated_byinteger nullable