API - Event Pattern State

Description
These APIs are used to get the states of all event patterns and offer suppression rules belonging to the specified audience ID.
Get Event Pattern State from Cache
This API call gets the states of all event patterns and offer suppression rules belonging to the specified audience ID.
GET/interact/v2/eventpatterns/cache?audienceLevel={audienceLevel}&audienceIDField={audienceIdFieldValue}
Parameters
Parameters Description
audienceLevel Audience Level
audienceIDField Audience ID
Example Result
Content-Type: application/json
{
  "lastUpdateTime": 0,
  "patternStates": [
    {
      "offerId": "string",
      "offerName": "string",
      "patternId": 0,
      "patternName": "string",
      "suppression": "string",
      "values": [
        {
          "activationTime": 0,
          "attrArray": {},
          "changed": true,
          "eventCounterDeltas": [ 0 ],
          "initialEventCounters": [ 0 ],
          "lastResetTime": 0,
          "lastUpdateTime": 0,
          "status": "string"
        } ]
    } ]
} 
Get Event Pattern State from Database
GET/interact/v2/eventpatterns/db?audienceLevel={audienceLevel}&audienceIDField={audienceIdFieldValue}
This API call gets the states of all event patterns and offer suppression rules belonging to the specified audience ID.
Parameters
Parameters Description
audienceLevel Audience Level
audienceIDField Audience ID field
Example Result
Content-Type: application/json
{
  "lastUpdateTime": 0,
  "patternStates": [
    {
      "offerId": "string",
      "offerName": "string",
      "patternId": 0,
      "patternName": "string",
      "suppression": "string",
      "values": [
        {
          "activationTime": 0,
          "attrArray": {},
          "changed": true,
          "eventCounterDeltas": [
            0
          ],
          "initialEventCounters": [
            0
          ],
          "lastResetTime": 0,
          "lastUpdateTime": 0,
          "status": "string"
        } ] }
  ] }