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

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

get
/datamarts/{datamart_id}/replication_job_executions
Path parameters
datamart_idinteger · int64Required
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

order_bystringOptional

Fields used to order the result

statusstring · enumOptional

The status of the job (PENDING/RUNNING/SUCCEEDED/FAILED)

Possible values:
Responses
200

Success !

application/json
totalintegerRequired
max_resultsintegerRequired
first_resultintegerRequired
countintegerRequired
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/replication_job_executions
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"
}

Create a datamart replication job execution

post
/datamarts/{datamart_id}/replication_job_executions
Path parameters
datamart_idinteger · int64Required
Body
replication_idsstring[]Optional
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/replication_job_executions
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

post
/datamarts/{datamart_id}/replication_job_executions/{id}/action
Path parameters
datamart_idinteger · int64Required
idinteger · int64Required
Body
actionstring · enumRequiredPossible values:
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/replication_job_executions/{id}/action
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

get
/datamarts/{datamart_id}/replication_job_executions/{id}
Path parameters
datamart_idinteger · int64Required
idinteger · int64Required
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/replication_job_executions/{id}
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

get
/datamarts/{datamart_id}/replications/{replication_id}/initial_config_script
Path parameters
datamart_idstringRequired
replication_idstringRequired
Responses
200

Success !

text/plain
stringOptional
get/datamarts/{datamart_id}/replications/{replication_id}/initial_config_script
GET /v1/datamarts/{datamart_id}/replications/{replication_id}/initial_config_script HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
text

Search datamart replications

get
/datamarts/{datamart_id}/replications
Path parameters
datamart_idstringRequired
Query parameters
namestringOptional

Datamart replication name

archivedbooleanOptional

Retrieve archived campaigns

versioninteger · int64Optional

Datamart replication version

internal_replicationbooleanOptional

Internal replication flag, set if the replication is used for internal process, with export to an external service provider

keywordsstringOptional

Datamart replication find by name keywords

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
first_resultintegerRequired
totalintegerRequired
statusstring · enumRequiredPossible values:
countintegerRequired
get/datamarts/{datamart_id}/replications
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
}

Create datamart replication

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

Success !

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/replications
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"
  }
}

Get datamart replication by id

get
/datamarts/{datamart_id}/replications/{replication_id}
Path parameters
datamart_idstringRequired
replication_idstringRequired
Query parameters
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
get/datamarts/{datamart_id}/replications/{replication_id}
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"
  }
}

Update a datamart replication

put
/datamarts/{datamart_id}/replications/{replication_id}
Path parameters
datamart_idstringRequired
replication_idstringRequired
Body
or
or
or
Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
put/datamarts/{datamart_id}/replications/{replication_id}
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"
  }
}

Delete the datamart replication

delete
/datamarts/{datamart_id}/replications/{replication_id}
Path parameters
datamart_idstringRequired
replication_idstringRequired
Responses
200

Success response

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

Upload datamart replication credentials

post
/datamarts/{datamart_id}/replications/{replication_id}/credentials
Path parameters
datamart_idstringRequired
replication_idstringRequired
Body
anyOptional
Responses
200

Success response

application/json
statusstring · enumRequiredPossible values:
post/datamarts/{datamart_id}/replications/{replication_id}/credentials
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?