Conditions Create 2

POST handler with superadmin-only field protection.

Strips superadmin-only fields from non-superadmin requests before delegating to OrganizationInjectionMixin.post() for org injection.

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

condition_idstringRequired

Request

This endpoint expects an object.
namestringRequired1-255 characters

Human-readable name for the condition

unique_organization_idstringRequired1-255 characters
Organization identifier
descriptionstringOptional
Description of what this condition does
filter_set_idstring or nullOptional<=255 characters
Filter set identifier for log filtering
sampling_ratedouble or nullOptional

Sampling rate for single log conditions (0.0 to 1.0)

time_step_minutesinteger or nullOptional-2147483648-2147483647
Time window in minutes for aggregation type conditions

Response

idstringRead-only
namestring<=255 characters

Human-readable name for the condition

condition_policymap from strings to objectsRead-only
unique_organization_idstring<=255 characters
Organization identifier
updated_byobject
created_atdatetimeRead-only
updated_atdatetimeRead-only
descriptionstring
Description of what this condition does
filter_set_idstring or null<=255 characters
Filter set identifier for log filtering
sampling_ratedouble or null

Sampling rate for single log conditions (0.0 to 1.0)

time_step_minutesinteger or null-2147483648-2147483647
Time window in minutes for aggregation type conditions