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

Retrieve the data for an existing Rule, based on its ID.

note

NOTE: When Rules are deleted, they are marked as deleted but are not actually removed from system. Therefore, it is possible to retrieve a deleted Rule. Deleted Rules can be identified by the presence of a data.meta.deleted_at element.

Definition

GET  /rules/:id

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/rules/:id \
  -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": "RL6ea13994a00348c48fe442754b9227ef",
    "type": "rules",
    "attributes": {
      "created_at": "2018-07-26T15:06:24.946Z",
      "dirty": true,
      "enabled": true,
      "name": "Example Rule",
      "published": false,
      "published_at": null,
      "revision_number": 0,
      "updated_at": "2018-07-26T15:06:24.946Z",
      "review_status": "unsubmitted"
    },
    "relationships": {
      "libraries": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef/libraries"
        }
      },
      "revisions": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef/revisions"
        }
      },
      "property": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef/property"
        },
        "data": {
          "type": "properties",
          "id": "PR13b805b2992c47f4b2db57b27eec6892"
        }
      },
      "origin": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef/origin"
        },
        "data": {
          "type": "rules",
          "id": "RL6ea13994a00348c48fe442754b9227ef"
        }
      },
      "rule_components": {
        "links": {
          "related": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef/rule_components"
        }
      }
    },
    "links": {
      "property": "https://mc-api-activation-reactor-qe.adobe.io/properties/PR13b805b2992c47f4b2db57b27eec6892",
      "origin": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef",
      "self": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef",
      "rule_components": "https://mc-api-activation-reactor-qe.adobe.io/rules/RL6ea13994a00348c48fe442754b9227ef/rule_components"
    },
    "meta": {
      "latest_revision_number": 0
    }
  }
}