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 Rule for a RuleComponent

Retrieve the data for the Rule that owns the specified RuleComponent.

Definition

GET  /rule_components/:rule_component_id/rule

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/rule_components/:rule_component_id/rule \
  -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": "RL2310e004cf1d4a3ead6bf601110c579b",
    "type": "rules",
    "attributes": {
      "created_at": "2018-08-31T16:52:35.622Z",
      "dirty": true,
      "enabled": true,
      "name": "Example Rule",
      "published": false,
      "published_at": null,
      "revision_number": 0,
      "updated_at": "2018-08-31T16:52:35.622Z",
      "review_status": "unsubmitted"
    },
    "relationships": {
      "libraries": {
        "links": {
          "related": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b/libraries"
        }
      },
      "revisions": {
        "links": {
          "related": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b/revisions"
        }
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b/property"
        },
        "data": {
          "id": "PR85ea0517c4c5471bbb310ad58174ae55",
          "type": "properties"
        }
      },
      "origin": {
        "links": {
          "related": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b/origin"
        },
        "data": {
          "id": "RL2310e004cf1d4a3ead6bf601110c579b",
          "type": "rules"
        }
      },
      "rule_components": {
        "links": {
          "related": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b/rule_components"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PR85ea0517c4c5471bbb310ad58174ae55",
      "origin": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b",
      "self": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b",
      "rule_components": "http://localhost:9010/rules/RL2310e004cf1d4a3ead6bf601110c579b/rule_components"
    },
    "meta": {
      "latest_revision_number": 0
    }
  }
}