Document Imports
Operations related to Document Imports, the mechanism to import large files containing customer data into Datamarts.
Get delta builder configuration for document import by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/delta_builder/configuration HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"document_import_id": "text",
"engine": "INTERNAL",
"engine_version": "text"
}
}Create delta builder configuration for document import
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/delta_builder/configuration HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"document_import_id": "text",
"engine": "INTERNAL"
}{
"status": "ok",
"data": {
"id": "text",
"document_import_id": "text",
"engine": "INTERNAL",
"engine_version": "text"
}
}Update delta builder configuration for document import
Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/delta_builder/configuration HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 49
{
"document_import_id": "text",
"engine": "INTERNAL"
}{
"status": "ok",
"data": {
"id": "text",
"document_import_id": "text",
"engine": "INTERNAL",
"engine_version": "text"
}
}Remove delta builder configuration for document import
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/delta_builder/configuration HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Perform document import action on JobExecution
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/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"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datasets/{dataset_id}/document_imports/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"target_type": "DATAMART",
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
}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 keywords to match with document import names
Content Type. For now only "application/x-ndjson"
Imports in the result are labeled by all labels identified by this list
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/document_imports HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"target_type": "DATAMART",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
],
"first_result": 1,
"total": 1,
"count": 1,
"status": "ok",
"max_results": 1
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/document_imports HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"target_type": "DATAMART",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}{
"status": "ok",
"data": {
"target_type": "DATAMART",
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
}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 keywords to match with document import names
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datasets/{dataset_id}/document_imports HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": [
{
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"target_type": "DATAMART",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
],
"count": 1,
"max_results": 1,
"total": 1,
"first_result": 1
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datasets/{dataset_id}/document_imports HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"target_type": "DATAMART",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}{
"status": "ok",
"data": {
"target_type": "DATAMART",
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
}Get an execution created on the dataset document import
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datasets/{dataset_id}/document_imports/{document_import_id}/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 an execution created on the document import
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/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 an execution created on the document import
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/delta_builder/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"
}
}List all executions created on the dataset document import
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)
Individual job execution name (not necessarily unique)
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datasets/{dataset_id}/document_imports/{id}/executions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"max_results": 1,
"count": 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"
}
],
"total": 1,
"status": "ok"
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datasets/{dataset_id}/document_imports/{id}/executions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: multipart/form-data
Accept: */*
Content-Length: 19
{
"file": [
"binary"
]
}{
"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"
}
}List all execution created on the document import
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)
Individual job execution name (not necessarily unique)
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/delta_builder/executions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"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,
"total": 1,
"status": "ok",
"max_results": 1,
"count": 1
}Post a file to start the job execution
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/document_imports/{document_import_id}/delta_builder/executions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 109
{
"from_version": "text",
"file_pattern": "text",
"identifier": "USER_ACCOUNT",
"to_version": "text",
"dry_run": false
}{
"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"
}
}Search document imports of an organisation, regardless of their target (datamart or dataset)
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 keywords to match with document import names
Restrict datamart-targeted results to the given datamart id(s); imports targeting a dataset are unaffected by this filter
Restrict dataset-targeted results to the given dataset id(s); imports targeting a datamart are unaffected by this filter
Content Type of the import
Imports in the result are labeled by all labels identified by this list
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/organisations/{organisation_id}/document_imports HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"max_results": 1,
"total": 1,
"status": "ok",
"data": [
{
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"target_type": "DATAMART",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
],
"first_result": 1
}List all execution created on the document import
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)
Individual job execution name (not necessarily unique)
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/document_imports/{id}/executions HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"max_results": 1,
"status": "ok",
"first_result": 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"
}
],
"total": 1
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/document_imports/{id}/executions HTTP/1.1
Host: api.mediarithmics.local
Content-Type: multipart/form-data
Accept: */*
Content-Length: 19
{
"file": [
"binary"
]
}{
"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"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/document_imports/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"target_type": "DATAMART",
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/document_imports/{id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"target_type": "DATAMART",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}{
"status": "ok",
"data": {
"target_type": "DATAMART",
"datafarm_key": "text",
"datamart_id": "text",
"shuffle_lines": false,
"mime_type": "APPLICATION_X_NDJSON",
"use_processing_pipeline": false,
"id": "text",
"priority": "LOW",
"source_type": "API",
"document_type": "USER_ACTIVITY",
"encoding": "text",
"name": "text"
}
}Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/document_imports/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Last updated
Was this helpful?