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

Datamarts Event Rules

Operations related to Datamart Event Rules that transform and enrich User Events (TOUCH, USER_EMAIL, DISPLAY_AD) during the real-time collection process for a specific Datamart. These rules are executed by Activity Analyzer plugins in the processing pipeline, applying to all activities tracked in real-time but not to bulk-imported activities.

Get a datamart event rule

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

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/event_rules/{event_rule_id}
GET /v1/datamarts/{datamart_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 datamart event rule

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

Success !

application/json
statusstring · enumRequiredPossible values:
put/datamarts/{datamart_id}/event_rules/{event_rule_id}
PUT /v1/datamarts/{datamart_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 datamart event rule

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

Success response

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

Last updated

Was this helpful?