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!


Retrieve a Rule

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": "RLc5e492266ef4410b8eb6d160062cd90a",
    "type": "rules",
    "attributes": {
      "created_at": "2018-06-15T19:10:31.924Z",
      "dirty": true,
      "enabled": true,
      "name": "Example Rule",
      "published": false,
      "published_at": null,
      "revision_number": 0,
      "updated_at": "2018-06-15T19:10:31.924Z",
      "review_status": "unsubmitted"
    },
    "relationships": {
      "libraries": {
        "links": {
          "related": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a/libraries"
        }
      },
      "revisions": {
        "links": {
          "related": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a/revisions"
        }
      },
      "property": {
        "links": {
          "related": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a/property"
        },
        "data": {
          "type": "properties",
          "id": "PR648796dc46f34cf9b741263db78f4b69"
        }
      },
      "origin": {
        "links": {
          "related": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a/origin"
        },
        "data": {
          "type": "rules",
          "id": "RLc5e492266ef4410b8eb6d160062cd90a"
        }
      },
      "rule_components": {
        "links": {
          "related": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a/rule_components"
        }
      }
    },
    "links": {
      "property": "http://localhost:9010/properties/PR648796dc46f34cf9b741263db78f4b69",
      "origin": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a",
      "self": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a",
      "rule_components": "http://localhost:9010/rules/RLc5e492266ef4410b8eb6d160062cd90a/rule_components"
    },
    "meta": {
      "latest_revision_number": 0
    }
  }
}