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!


Get the origin of a RuleComponent

Retrieve the data for the specified RuleComponent’s origin.

The origin of a RuleComponent is the RuleComponent that was revised to create this RuleComponent.

Definition

GET  /rule_components/:rule_component_id/origin

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/rule_components/:rule_component_id/origin \
  -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": "RCcf98470ad1074ca5965e2534d2589b8a",
    "type": "rule_components",
    "attributes": {
      "created_at": "2018-08-31T16:52:20.955Z",
      "delegate_descriptor_id": "kessel-test::events::click",
      "dirty": false,
      "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:20.955Z",
      "settings": "{\"elementSelector\":\".accordion\",\"bubbleFireIfChildFired\":true}"
    },
    "relationships": {
      "updated_with_extension_package": {
        "links": {
          "related": "http://localhost:9010/rule_components/RCcf98470ad1074ca5965e2534d2589b8a/updated_with_extension_package"
        },
        "data": {
          "id": "EP27e9323eb585411fae6086fc78a3b70b",
          "type": "extension_packages"
        }
      },
      "extension": {
        "links": {
          "related": "http://localhost:9010/rule_components/RCcf98470ad1074ca5965e2534d2589b8a/extension"
        },
        "data": {
          "id": "EXfb7975f76c8c4012a2e926a6c8f9f957",
          "type": "extensions"
        }
      },
      "origin": {
        "links": {
          "related": "http://localhost:9010/rule_components/RCcf98470ad1074ca5965e2534d2589b8a/origin"
        },
        "data": {
          "id": "RCcf98470ad1074ca5965e2534d2589b8a",
          "type": "rule_components"
        }
      },
      "rule": {
        "links": {
          "related": "http://localhost:9010/rule_components/RCcf98470ad1074ca5965e2534d2589b8a/rule"
        },
        "data": {
          "id": "RLe55c935097b44f0ab1728ef2c6342b4e",
          "type": "rules"
        }
      }
    },
    "links": {
      "extension": "http://localhost:9010/extensions/EXfb7975f76c8c4012a2e926a6c8f9f957",
      "origin": "http://localhost:9010/rule_components/RCcf98470ad1074ca5965e2534d2589b8a",
      "rule": "http://localhost:9010/rules/RLe55c935097b44f0ab1728ef2c6342b4e",
      "self": "http://localhost:9010/rule_components/RCcf98470ad1074ca5965e2534d2589b8a"
    },
    "meta": {
      "latest_revision_number": 1
    }
  }
}