API Reference for Marketo Engage

Reorder Rules

POST /rest/asset/v1/smartList/{id}/reorder.json

Changes the order of rules within a smart list.

Operation ID
reorderSmartListRulesUsingPOST
Permissions
Read-Write Assets
Request format
application/x-www-form-urlencoded
Returns
ResponseOfSmartListResponseWithRules

Parameters

Path 1

id integer (int64) required

Id of the smart list

Form 1

order string required

JSON array of rules with members 'id' (the rule id) and 'index' (its 1-based position), for example [{"id":101,"index":1}]

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.

↑ ↓ to move, ↵ to open, esc to closeSee all results