For the complete documentation index, see llms.txt. This page is also available as Markdown.

Channels Event Rules

Operations related to Event Rules that transform and enrich User Events during the real-time collection process for a Datamart or a specific Channel. Event Rules are executed by Activity Analyzer plugins as part of the processing pipeline before data storage, enabling:

  • Data reformatting

  • Enrichment with external data

  • Quality improvements

Relevant documentation:

Search datamart event rules

get
/datamarts/{datamart_id}/event_rules
Path parameters
datamart_idstringRequired
Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
countintegerRequired
statusstring · enumRequiredPossible values:
max_resultsintegerRequired
first_resultintegerRequired
totalintegerRequired
get/datamarts/{datamart_id}/event_rules
GET /v1/datamarts/{datamart_id}/event_rules HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "count": 1,
  "status": "ok",
  "max_results": 1,
  "first_result": 1,
  "data": [
    {
      "datamart_id": "text",
      "channel_id": "text",
      "destination": "text",
      "id": "text",
      "property_source": "REFERRER",
      "property_name": "text"
    }
  ],
  "total": 1
}

Create datamart event rule

post
/datamarts/{datamart_id}/event_rules
Path parameters
datamart_idstringRequired
Body
or
or
or
or
or
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/event_rules
POST /v1/datamarts/{datamart_id}/event_rules HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "type": "PROPERTY_TO_ORIGIN_COPY",
  "destination": "text",
  "property_source": "REFERRER",
  "property_name": "text"
}
{
  "status": "ok",
  "data": {
    "type": "PROPERTY_TO_ORIGIN_COPY",
    "datamart_id": "text",
    "channel_id": "text",
    "destination": "text",
    "id": "text",
    "property_source": "REFERRER",
    "property_name": "text"
  }
}

Get a channel event rule

get
/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id}
Path parameters
datamart_idstringRequired
channel_idstringRequired
event_rule_idstringRequired
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id}
GET /v1/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok",
  "data": {
    "type": "PROPERTY_TO_ORIGIN_COPY",
    "datamart_id": "text",
    "channel_id": "text",
    "destination": "text",
    "id": "text",
    "property_source": "REFERRER",
    "property_name": "text"
  }
}

Update a channel event rule

put
/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id}
Path parameters
datamart_idstringRequired
channel_idstringRequired
event_rule_idstringRequired
Body
or
or
or
or
or
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id}
PUT /v1/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "type": "PROPERTY_TO_ORIGIN_COPY",
  "destination": "text",
  "property_source": "REFERRER",
  "property_name": "text"
}
{
  "status": "ok",
  "data": {
    "type": "PROPERTY_TO_ORIGIN_COPY",
    "datamart_id": "text",
    "channel_id": "text",
    "destination": "text",
    "id": "text",
    "property_source": "REFERRER",
    "property_name": "text"
  }
}

Delete a channel event rule

delete
/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id}
Path parameters
datamart_idstringRequired
channel_idstringRequired
event_rule_idstringRequired
Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
delete/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id}
DELETE /v1/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "status": "ok"
}

Search channel event rules

get
/datamarts/{datamart_id}/channels/{channel_id}/event_rules
Path parameters
datamart_idstringRequired
channel_idstringRequired
Query parameters
first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
max_resultsintegerRequired
totalintegerRequired
countintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/channels/{channel_id}/event_rules
GET /v1/datamarts/{datamart_id}/channels/{channel_id}/event_rules HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
  "max_results": 1,
  "total": 1,
  "data": [
    {
      "datamart_id": "text",
      "channel_id": "text",
      "destination": "text",
      "id": "text",
      "property_source": "REFERRER",
      "property_name": "text"
    }
  ],
  "count": 1,
  "first_result": 1,
  "status": "ok"
}

Create Channel event rule

post
/datamarts/{datamart_id}/channels/{channel_id}/event_rules
Path parameters
datamart_idstringRequired
channel_idstringRequired
Body
or
or
or
or
or
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/channels/{channel_id}/event_rules
POST /v1/datamarts/{datamart_id}/channels/{channel_id}/event_rules HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "type": "PROPERTY_TO_ORIGIN_COPY",
  "destination": "text",
  "property_source": "REFERRER",
  "property_name": "text"
}
{
  "status": "ok",
  "data": {
    "type": "PROPERTY_TO_ORIGIN_COPY",
    "datamart_id": "text",
    "channel_id": "text",
    "destination": "text",
    "id": "text",
    "property_source": "REFERRER",
    "property_name": "text"
  }
}

Last updated

Was this helpful?