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:
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
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
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
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
Success !
Error response
Error response
Error response
Error response
Error response
Error response
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
Success !
Error response
Error response
Error response
Error response
Error response
Error response
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
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/channels/{channel_id}/event_rules/{event_rule_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
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"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
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?