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

Retrieve the RuleComponents used by the specified 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": "RCf250b378e7c04d9e8e3dcc9dbfb661ca",
      "type": "rule_components",
      "attributes": {
        "created_at": "2018-08-31T16:52:10.807Z",
        "delegate_descriptor_id": "kessel-test::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-08-31T16:52:10.807Z",
        "settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":true}"
      },
      "relationships": {
        "updated_with_extension_package": {
          "links": {
            "related": "http://localhost:9010/rule_components/RCf250b378e7c04d9e8e3dcc9dbfb661ca/updated_with_extension_package"
          },
          "data": {
            "id": "EP27e9323eb585411fae6086fc78a3b70b",
            "type": "extension_packages"
          }
        },
        "extension": {
          "links": {
            "related": "http://localhost:9010/rule_components/RCf250b378e7c04d9e8e3dcc9dbfb661ca/extension"
          },
          "data": {
            "id": "EX08fa21be175f459a91a88f0828d62566",
            "type": "extensions"
          }
        },
        "origin": {
          "links": {
            "related": "http://localhost:9010/rule_components/RCf250b378e7c04d9e8e3dcc9dbfb661ca/origin"
          },
          "data": {
            "id": "RCf250b378e7c04d9e8e3dcc9dbfb661ca",
            "type": "rule_components"
          }
        },
        "rule": {
          "links": {
            "related": "http://localhost:9010/rule_components/RCf250b378e7c04d9e8e3dcc9dbfb661ca/rule"
          },
          "data": {
            "id": "RLf401f039020645de8f5453e070094682",
            "type": "rules"
          }
        }
      },
      "links": {
        "extension": "http://localhost:9010/extensions/EX08fa21be175f459a91a88f0828d62566",
        "origin": "http://localhost:9010/rule_components/RCf250b378e7c04d9e8e3dcc9dbfb661ca",
        "rule": "http://localhost:9010/rules/RLf401f039020645de8f5453e070094682",
        "self": "http://localhost:9010/rule_components/RCf250b378e7c04d9e8e3dcc9dbfb661ca"
      },
      "meta": {
        "latest_revision_number": 0
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}