Remove Rule Constraint
Removes a constraint from a rule without deleting the entire rule.
Parameters
Path 2
id integer (int64) requiredId of the smart list
ruleId integer (int64) requiredId of the rule
Form 1
attributeId string requiredJSON representation of the constraint to remove, with members 'id' and 'type' which may be 'activity' or 'attribute', for example {"id":2,"type":"activity"}. 'id' is the id of a constraint of the rule type and 'type' is the type of the rule type, both returned by Get Smart List Rules
Responses
200 OK ResponseOfSmartListResponseWithRules
errors array of Error
Model Error
code string required Error code of the error. See full list of error codes here
message string required Message describing the cause of the error
requestId string result array of SmartListResponseWithRules
Model SmartListResponseWithRules
id integer (int64) required Id of the smart list
name string required Name of the smart list
description string required Description of the smart list
createdAt string (date-time) required Datetime the smart list was created
updatedAt string (date-time) required Datetime the smart list was most recently updated
url string required Url of the smart list in the Marketo UI
folder Folder required
JSON representation of parent folder, with members 'id', and 'type' which may be 'Folder' or 'Program'
Model Folder
id integer (int32) required Id of the folder
type string required Type of folder
Values Folder Program
workspace string required Name of the workspace
rules SmartListRules
Rules contained in the smart list
Model SmartListRules
filterMatchType string required Smart list filter match type (rule logic)
Values all any custom
triggers array of SmartListFilters required
List of smart list triggers
Model SmartListFilters
result › rules › triggers
id integer (int32) required Id of the filter
name string required Name of filter
ruleTypeId integer (int32) required Id of the rule type
ruleType string required Type of rule
Values Activity Attribute
operator string required Name of operator
conditions array of SmartListConditions
List of smart list conditions
Model SmartListConditions
result › rules › triggers › conditions
activityAttributeId integer (int32) Id of the activity attribute. Present on conditions of activity rules
activityAttributeName string Name of the activity attribute. Present on conditions of activity rules
attributeId integer (int64) Id of the field. Present on conditions of attribute rules
attributeName string Name of the field. Present on conditions of attribute rules
operator string Value of operator
values array of string required List of values
isPrimary boolean Whether the condition is primary or not (first condition of the smart list)
isError boolean Whether the condition has a validation error
errorMessage string Validation error of the condition. Present when isError is true
filters array of SmartListFilters required
List of smart list filters
Model SmartListFilters
result › rules › filters
id integer (int32) required Id of the filter
name string required Name of filter
ruleTypeId integer (int32) required Id of the rule type
ruleType string required Type of rule
Values Activity Attribute
operator string required Name of operator
conditions array of SmartListConditions
List of smart list conditions
Model SmartListConditions
result › rules › filters › conditions
activityAttributeId integer (int32) Id of the activity attribute. Present on conditions of activity rules
activityAttributeName string Name of the activity attribute. Present on conditions of activity rules
attributeId integer (int64) Id of the field. Present on conditions of attribute rules
attributeName string Name of the field. Present on conditions of attribute rules
operator string Value of operator
values array of string required List of values
isPrimary boolean Whether the condition is primary or not (first condition of the smart list)
isError boolean Whether the condition has a validation error
errorMessage string Validation error of the condition. Present when isError is true
filterCustomRuleLogic string Custom rule logic, for example 1 and (2 or 3). Present when filterMatchType is custom
success boolean warnings array of string Generated example
{
"errors": [
{
"code": "string",
"message": "string"
}
],
"requestId": "123",
"result": [
{
"id": 123,
"name": "Example name",
"description": "string",
"createdAt": "2026-01-15T10:30:00Z",
"updatedAt": "2026-01-15T10:30:00Z",
"url": "https://example.com",
"folder": {
"id": 123,
"type": "Folder"
},
"workspace": "string",
"rules": {
"filterMatchType": "all",
"triggers": [
{
"id": 123,
"name": "Example name",
"ruleTypeId": 123,
"ruleType": "Activity",
"operator": "string",
"conditions": [
null
]
}
],
"filters": [
{
"id": 123,
"name": "Example name",
"ruleTypeId": 123,
"ruleType": "Activity",
"operator": "string",
"conditions": [
null
]
}
],
"filterCustomRuleLogic": "string"
}
}
],
"success": true,
"warnings": [
"string"
]
}Referenced models
Generated from swagger-asset.json. Generated examples are inferred from the schema; they are illustrative and may not be valid production payloads.