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!


List Rules for a Property

Definition

GET  /properties/:property_id/rules

Example Request

curl https://mc-api-activation-reactor-integration.adobe.io/properties/:property_id/rules \
  -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": "RLfc3d64e0753849ba83e3d94d895c1d6b",
      "type": "rules",
      "attributes": {
        "created_at": "2018-06-15T19:10:32.857Z",
        "dirty": true,
        "enabled": true,
        "name": "Example Rule",
        "published": false,
        "published_at": null,
        "revision_number": 0,
        "updated_at": "2018-06-15T19:10:32.857Z",
        "review_status": "unsubmitted"
      },
      "relationships": {
        "libraries": {
          "links": {
            "related": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b/libraries"
          }
        },
        "revisions": {
          "links": {
            "related": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b/revisions"
          }
        },
        "property": {
          "links": {
            "related": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b/property"
          },
          "data": {
            "type": "properties",
            "id": "PR26fa97ee433d4d13975a8f31ba364abe"
          }
        },
        "origin": {
          "links": {
            "related": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b/origin"
          },
          "data": {
            "type": "rules",
            "id": "RLfc3d64e0753849ba83e3d94d895c1d6b"
          }
        },
        "rule_components": {
          "links": {
            "related": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b/rule_components"
          }
        }
      },
      "links": {
        "property": "http://localhost:9010/properties/PR26fa97ee433d4d13975a8f31ba364abe",
        "origin": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b",
        "self": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b",
        "rule_components": "http://localhost:9010/rules/RLfc3d64e0753849ba83e3d94d895c1d6b/rule_components"
      },
      "meta": {
        "latest_revision_number": 0
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "prev_page": null,
      "total_pages": 1,
      "total_count": 1
    }
  }
}