Adobe Launch Logo Adobe Experience Platform Launch

    • Light
    • Dark

Fetch a Rule

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

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 data.meta.deleted_at.

Definition

GET  /rules/:id

Example Request

curl https://reactor.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": "RL8637ae85317b4593b5bacf60b1c3c467",
    "type": "rules",
    "attributes": {
      "created_at": "2018-08-31T16:52:24.352Z",
      "dirty": true,
      "enabled": true,
      "name": "Example Rule",
      "published": false,
      "published_at": null,
      "revision_number": 0,
      "updated_at": "2018-08-31T16:52:24.352Z",
      "review_status": "unsubmitted"
    },
    "relationships": {
      "libraries": {
        "links": {
          "related": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467/libraries"
        }
      },
      "revisions": {
        "links": {
          "related": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467/revisions"
        }
      },
      "property": {
        "links": {
          "related": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467/property"
        },
        "data": {
          "id": "PR075c3f06a8f9445c87ef6c7ef2a9b24e",
          "type": "properties"
        }
      },
      "origin": {
        "links": {
          "related": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467/origin"
        },
        "data": {
          "id": "RL8637ae85317b4593b5bacf60b1c3c467",
          "type": "rules"
        }
      },
      "rule_components": {
        "links": {
          "related": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467/rule_components"
        }
      }
    },
    "links": {
      "property": "https://reactor.adobe.io/properties/PR075c3f06a8f9445c87ef6c7ef2a9b24e",
      "origin": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467",
      "self": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467",
      "rule_components": "https://reactor.adobe.io/rules/RL8637ae85317b4593b5bacf60b1c3c467/rule_components"
    },
    "meta": {
      "latest_revision_number": 0
    }
  }
}