WARNING

WARNING: These APIs are currently in an 'alpha' state and are likely to change over time. We recommend you not use them in a production setting at this time!


List RuleComponents for a Rule

Definition

GET  /rules/:rule_id/rule_components

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/rules/:rule_id/rule_components \
  -H "Accept: application/vnd.api+json;revision=1" \
  -H "Content-Type: application/vnd.api+json" \
  -H "Authorization: Bearer [TOKEN]" \
  -H "X-Api-Key: [KEY]" \
  -X GET
  

Example Response

200 OK
{
  "data": [
    {
      "id": "RCbe9b5af92b384e62b12a53688ba82ec8",
      "type": "rule_components",
      "attributes": {
        "created_at": "2018-06-15T19:10:26.172Z",
        "delegate_descriptor_id": "EPc9ce7e7145a3406f9d9d73a16c925ca2::events::click",
        "dirty": true,
        "name": "My Example Click Event",
        "negate": false,
        "order": null,
        "rule_order": 50.0,
        "published": false,
        "published_at": null,
        "revision_number": 0,
        "updated_at": "2018-06-15T19:10:26.172Z",
        "settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":true}"
      },
      "relationships": {
        "rule": {
          "links": {
            "related": "http://localhost:9010/rule_components/RCbe9b5af92b384e62b12a53688ba82ec8/rule"
          },
          "data": {
            "type": "rules",
            "id": "RL89ec3e11ff7d45868a8652d077937c20"
          }
        },
        "origin": {
          "links": {
            "related": "http://localhost:9010/rule_components/RCbe9b5af92b384e62b12a53688ba82ec8/origin"
          },
          "data": {
            "type": "rule_components",
            "id": "RCbe9b5af92b384e62b12a53688ba82ec8"
          }
        },
        "extension": {
          "links": {
            "related": "http://localhost:9010/rule_components/RCbe9b5af92b384e62b12a53688ba82ec8/extension"
          },
          "data": {
            "type": "extensions",
            "id": "EX61e5028496d44c31a55588f474591c3b"
          }
        }
      },
      "links": {
        "extension": "http://localhost:9010/extensions/EX61e5028496d44c31a55588f474591c3b",
        "origin": "http://localhost:9010/rule_components/RCbe9b5af92b384e62b12a53688ba82ec8",
        "rule": "http://localhost:9010/rules/RL89ec3e11ff7d45868a8652d077937c20",
        "self": "http://localhost:9010/rule_components/RCbe9b5af92b384e62b12a53688ba82ec8"
      },
      "meta": {
        "latest_revision_number": 0
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}