Skip to main content

Overview

Adds a condition to an RLCL. Conditions determine when the RLCL should be applied. If a condition is set, the RLCL is only applied when the condition evaluates to true.

Endpoint

Authentication

Requires a Personal API Access Token.

Request

Headers

Path Parameters

Request Body

Full JSON Body Example - Simple Condition

Full JSON Body Example - Complex Condition with Multiple Rules

Request Body Fields

ConditionRuleDTO (conditionRuleList item)

EnumConditionCriteria (conditionCriteria)

  • VALUE - Value comparison (used for actual comparison operations)
  • NOT - Negation (negates the condition)
  • AND - Logical AND (all nested conditions must match)
  • OR - Logical OR (any nested condition must match)
For actual value comparisons, use VALUE. Use AND/OR/NOT for combining multiple conditions.

EnumConditionVariableDataType (variableDataType)

  • STRING - String data type
  • NUMERIC - Numeric data type
  • DATE - Date data type
BOOLEAN is not supported. Use STRING with EQ/NE operators for boolean-like comparisons.

EnumConditionValueComparisonOperator (valueComparisonOperator)

  • LT - Less than
  • LE - Less than or equal to
  • GT - Greater than
  • GE - Greater than or equal to
  • EQ - Equal to
  • NE - Not equal to
  • EQ_IGNORE_CASE - Equal to, case insensitive (string only)
  • NE_IGNORE_CASE - Not equal to, case insensitive (string only)
  • STARTS_WITH - Starts with (string only)
  • NOT_STARTS_WITH - Does not start with (string only)
  • STARTS_WITH_IGNORE_CASE - Starts with, case insensitive (string only)
  • NOT_STARTS_WITH_IGNORE_CASE - Does not start with, case insensitive (string only)
  • ENDS_WITH - Ends with (string only)
  • NOT_ENDS_WITH - Does not end with (string only)
  • ENDS_WITH_IGNORE_CASE - Ends with, case insensitive (string only)
  • NOT_ENDS_WITH_IGNORE_CASE - Does not end with, case insensitive (string only)
  • CONTAINS - Contains (string only)
  • NOT_CONTAINS - Does not contain (string only)
  • CONTAINS_IGNORE_CASE - Contains, case insensitive (string only)
  • NOT_CONTAINS_IGNORE_CASE - Does not contain, case insensitive (string only)
  • IS_EXISTS - Variable exists (regardless of value)
  • IS_NOT_EXISTS - Variable does not exist
  • IS_NOT_EMPTY - Variable exists and is not empty
  • IS_EMPTY - Variable does not exist or is empty
  • EXISTS_AND_EMPTY - Variable exists but is empty
  • IN - Value is in list
  • NOT_IN - Value is not in list
  • IN_IGNORE_CASE - Value is in list, case insensitive (string only)
  • NOT_IN_IGNORE_CASE - Value is not in list, case insensitive (string only)

EnumConditionValueSource (secondValueSource)

  • VALUE - Static value (use secondValue field)
  • VARIABLE - Variable value (use secondVariable field)

Variable Object (firstVariable/secondVariable)

See Variable Definition for complete variable documentation.

Notes

  • Conditions are evaluated before applying rate limiting
  • If condition evaluates to false, RLCL is not applied
  • Nested conditions are supported for complex logic
  • If conditionRuleList is empty, default AND rule is used

Response

Success Response (200 OK)

Error Response (400 Bad Request)

cURL Example

Permissions

  • User must have IDENTITY + MANAGE permission in the project

Notes and Warnings

  • Condition Evaluation:
    • Condition is evaluated before applying rate limiting
    • If condition is false, RLCL is not applied
  • Nested Conditions:
    • Complex conditions can be created using nested rules
    • Use conditionRuleList for nested logic
  • RLCL Must Exist:
    • RLCL must exist before adding condition