Replications
Operations related to Replications for completely replicating the data stream collected in a Datamart to external destinations (Data Warehouse, Data Lake) through Google Pub/Sub. Replicates update and delete operations for:
UserPoints
UserActivities
UserSegments
UserProfiles
UserAccounts
UserEmails
Merge events
Supports initial synchronization of existing data.
Relevant documentation:
List all datamart replication job executions from a given datamart
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Fields used to order the result
The status of the job (PENDING/RUNNING/SUCCEEDED/FAILED)
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/replication_job_executions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"total": 1,
"max_results": 1,
"data": [
{
"organisation_id": "text",
"start_date": 0,
"job_type": "text",
"num_tasks": 0,
"community_id": "text",
"completed_tasks": 0,
"max_retry_count": 0,
"parameters": "text",
"result": "text",
"duration": 1,
"cancel_status": "REQUESTED",
"is_retryable": false,
"status": "PENDING",
"creation_date": 0,
"user_id": "text",
"id": "text",
"erroneous_tasks": 0,
"retry_count": 0,
"permalink_uri": "text",
"debug": "text",
"external_name": "text"
}
],
"first_result": 1,
"count": 1,
"status": "ok"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/replication_job_executions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 28
{
"replication_ids": [
"text"
]
}{
"status": "ok",
"data": {
"organisation_id": "text",
"start_date": 0,
"job_type": "text",
"num_tasks": 0,
"community_id": "text",
"completed_tasks": 0,
"max_retry_count": 0,
"parameters": "text",
"result": "text",
"duration": 1,
"cancel_status": "REQUESTED",
"is_retryable": false,
"status": "PENDING",
"creation_date": 0,
"user_id": "text",
"id": "text",
"erroneous_tasks": 0,
"retry_count": 0,
"permalink_uri": "text",
"debug": "text",
"external_name": "text"
}
}Perform an action on the datamart replication job execution
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/replication_job_executions/{id}/action HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"action": "CANCEL"
}{
"status": "ok",
"data": {
"organisation_id": "text",
"start_date": 0,
"job_type": "text",
"num_tasks": 0,
"community_id": "text",
"completed_tasks": 0,
"max_retry_count": 0,
"parameters": "text",
"result": "text",
"duration": 1,
"cancel_status": "REQUESTED",
"is_retryable": false,
"status": "PENDING",
"creation_date": 0,
"user_id": "text",
"id": "text",
"erroneous_tasks": 0,
"retry_count": 0,
"permalink_uri": "text",
"debug": "text",
"external_name": "text"
}
}Find a datamart replication execution from a given datamart
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/replication_job_executions/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"organisation_id": "text",
"start_date": 0,
"job_type": "text",
"num_tasks": 0,
"community_id": "text",
"completed_tasks": 0,
"max_retry_count": 0,
"parameters": "text",
"result": "text",
"duration": 1,
"cancel_status": "REQUESTED",
"is_retryable": false,
"status": "PENDING",
"creation_date": 0,
"user_id": "text",
"id": "text",
"erroneous_tasks": 0,
"retry_count": 0,
"permalink_uri": "text",
"debug": "text",
"external_name": "text"
}
}Get replication initial config script
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/replications/{replication_id}/initial_config_script HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
textDatamart replication name
Retrieve archived campaigns
Datamart replication version
Internal replication flag, set if the replication is used for internal process, with export to an external service provider
Datamart replication find by name keywords
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}/replications HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"max_results": 1,
"data": [
{
"id": "text",
"credentials_uri": "text",
"status": "PAUSED",
"internal_replication": false,
"project_id": "text",
"datamart_id": "text",
"replication_filters": [
{
"id": "text",
"document": "USER_ACCOUNT",
"filter": "text",
"replication_id": "text",
"schema_type_name": "text"
}
],
"name": "text",
"version": 0,
"creation_ts": 0,
"topic_id": "text"
}
],
"first_result": 1,
"total": 1,
"status": "ok",
"count": 1
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/replications HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 299
{
"type": "GOOGLE_PUBSUB",
"credentials_uri": "text",
"status": "PAUSED",
"internal_replication": false,
"project_id": "text",
"datamart_id": "text",
"replication_filters": [
{
"document": "USER_ACCOUNT",
"filter": "text",
"replication_id": "text",
"schema_type_name": "text"
}
],
"name": "text",
"version": 0,
"topic_id": "text"
}{
"status": "ok",
"data": {
"type": "GOOGLE_PUBSUB",
"id": "text",
"credentials_uri": "text",
"status": "PAUSED",
"internal_replication": false,
"project_id": "text",
"datamart_id": "text",
"replication_filters": [
{
"id": "text",
"document": "USER_ACCOUNT",
"filter": "text",
"replication_id": "text",
"schema_type_name": "text"
}
],
"name": "text",
"version": 0,
"creation_ts": 0,
"topic_id": "text"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/replications/{replication_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"type": "GOOGLE_PUBSUB",
"id": "text",
"credentials_uri": "text",
"status": "PAUSED",
"internal_replication": false,
"project_id": "text",
"datamart_id": "text",
"replication_filters": [
{
"id": "text",
"document": "USER_ACCOUNT",
"filter": "text",
"replication_id": "text",
"schema_type_name": "text"
}
],
"name": "text",
"version": 0,
"creation_ts": 0,
"topic_id": "text"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/replications/{replication_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 299
{
"type": "GOOGLE_PUBSUB",
"credentials_uri": "text",
"status": "PAUSED",
"internal_replication": false,
"project_id": "text",
"datamart_id": "text",
"replication_filters": [
{
"document": "USER_ACCOUNT",
"filter": "text",
"replication_id": "text",
"schema_type_name": "text"
}
],
"name": "text",
"version": 0,
"topic_id": "text"
}{
"status": "ok",
"data": {
"type": "GOOGLE_PUBSUB",
"id": "text",
"credentials_uri": "text",
"status": "PAUSED",
"internal_replication": false,
"project_id": "text",
"datamart_id": "text",
"replication_filters": [
{
"id": "text",
"document": "USER_ACCOUNT",
"filter": "text",
"replication_id": "text",
"schema_type_name": "text"
}
],
"name": "text",
"version": 0,
"creation_ts": 0,
"topic_id": "text"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/replications/{replication_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Upload datamart replication credentials
Success response
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/replications/{replication_id}/credentials HTTP/1.1
Host: api.mediarithmics.local
Content-Type: multipart/form-data
Accept: */*
{
"status": "ok"
}Last updated
Was this helpful?