Api Conditions Create
Handle POST requests for both creation and filtering.
Determines whether the request is for creating a new condition or filtering existing conditions based on the presence of creation-specific fields.
Args: request: HTTP request object
Returns: Response: Either creation response or filtered list response
Authentication
AuthorizationBearer
JWT access token or Respan API key
Request
This endpoint expects an object.
name
Human-readable name for the condition
condition_policy
Complex condition rules and logic stored as JSON
id
description
Description of what this condition does
filter_set_id
Filter set identifier for log filtering
time_step_minutes
Time window in minutes for aggregation type conditions
sampling_rate
Sampling rate for single log conditions (0.0 to 1.0)
updated_by
Response
unique_organization_id
Organization identifier
name
Human-readable name for the condition
condition_policy
Complex condition rules and logic stored as JSON
created_at
updated_at
id
description
Description of what this condition does
filter_set_id
Filter set identifier for log filtering
time_step_minutes
Time window in minutes for aggregation type conditions
sampling_rate
Sampling rate for single log conditions (0.0 to 1.0)
updated_by