Conditions Retrieve

REST API view for retrieving, updating, and deleting individual automation conditions. This view handles: - GET: Retrieve a specific automation condition by condition_id - PUT/PATCH: Update an existing automation condition - DELETE: Delete an automation condition Superadmin: Can access any condition across all organizations. Regular users: Can only access conditions in their organization. Lookup field: id (condition_id in URL) Authentication: JWT token or API Key Permissions: Automatic via JWTAndAPIKeyAuthenticationViewMixin

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

condition_idstringRequired

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