Runtime Schemas
Operations related to Runtime Schemas, the GraphQL SDL configurations that define the data model of a Datamart, specifying which objects and fields are stored, structured, and indexed for querying. Indexed fields can be used in OTQL queries and segment building, while non-indexed fields remain stored but not queryable. Schema changes can be applied with historical data reindexing.
Relevant documentation:
The datamart owning the schema.
The schema to validate.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/validation HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"datamart_id": "text",
"schema_id": "text",
"tree_index_operations": [
{
"datamart_id": "text",
"index_selection_id": "text",
"error_code": "INDEX_JOB_STILL_RUNNING",
"error_message": "text"
}
],
"schema_errors": [
{
"error_code": "COMPILATION_ERROR",
"error_message": "text"
}
]
}
}Get scalar field
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/scalar_fields/{scalar_field_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
}Update scalar field
falsefalsefalsefalseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/scalar_fields/{scalar_field_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 388
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}{
"status": "ok",
"data": {
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
}Delete scalar field
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/scalar_fields/{scalar_field_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get object tree
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"input_stream_configs": [
{
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
],
"relation_cardinality": "ONE_TO_ONE",
"relation_name": "text",
"data_source_type": "DATA_WAREHOUSE",
"data_warehouse_id": "text",
"channel_source": {
"type": "STATIC",
"id": "text",
"channel_id": "text"
},
"computed_field_technical_name": "text",
"data_warehouse_live_ingestion_config": {
"id": "text",
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"creation_ts": 0,
"bucket_name": "text",
"data_warehouse_id": "text"
},
"description": "text",
"cloned_from": "text",
"name": "text",
"datamart_schema_id": "text",
"object_type_definition": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": "[Circular Reference]",
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
},
"user_identifiers": [
{
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
],
"event_name": {
"type": "STATIC",
"id": "text",
"event_name": "text"
},
"object_tree_type": "Custom",
"activity_type": "TOUCH"
}
}Get object types
Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 2308
{
"input_stream_configs": [
{
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"end_hour": 0,
"value": 0
}
}
],
"relation_cardinality": "ONE_TO_ONE",
"relation_name": "text",
"data_source_type": "DATA_WAREHOUSE",
"data_warehouse_id": "text",
"channel_source": {
"type": "STATIC",
"channel_id": "text"
},
"computed_field_technical_name": "text",
"data_warehouse_live_ingestion_config": {
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"bucket_name": "text",
"data_warehouse_id": "text"
},
"description": "text",
"cloned_from": "text",
"name": "text",
"datamart_schema_id": "text",
"object_type_definition": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
"[Circular Reference]"
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
},
"user_identifiers": [
{
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
],
"event_name": {
"type": "STATIC",
"event_name": "text"
},
"object_tree_type": "Custom",
"activity_type": "TOUCH"
}{
"status": "ok",
"data": {
"id": "text",
"input_stream_configs": [
{
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
],
"relation_cardinality": "ONE_TO_ONE",
"relation_name": "text",
"data_source_type": "DATA_WAREHOUSE",
"data_warehouse_id": "text",
"channel_source": {
"type": "STATIC",
"id": "text",
"channel_id": "text"
},
"computed_field_technical_name": "text",
"data_warehouse_live_ingestion_config": {
"id": "text",
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"creation_ts": 0,
"bucket_name": "text",
"data_warehouse_id": "text"
},
"description": "text",
"cloned_from": "text",
"name": "text",
"datamart_schema_id": "text",
"object_type_definition": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": "[Circular Reference]",
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
},
"user_identifiers": [
{
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
],
"event_name": {
"type": "STATIC",
"id": "text",
"event_name": "text"
},
"object_tree_type": "Custom",
"activity_type": "TOUCH"
}
}Delete object tree
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get object type by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"runtime_schema_id": "text",
"type": "OBJECT_TYPE",
"name": "text"
}
}Enable or disable user agent mappings
Success response
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/user_agent_mappings HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 19
{
"action": "ENABLE"
}{
"status": "ok"
}Get object tree relationship
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/relationships/{relationship_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": "[Circular Reference]",
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
}Update object tree relationship
Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/relationships/{relationship_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 1338
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
"[Circular Reference]"
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}{
"status": "ok",
"data": {
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": "[Circular Reference]",
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
}Delete object tree relationship
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/relationships/{relationship_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}The datamart to get the schemas from.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"total": 1,
"count": 1,
"max_results": 1,
"first_result": 1,
"status": "ok",
"data": [
{
"id": "text",
"creation_date": 0,
"last_modification_date": 0,
"publication_date": 0,
"datamart_id": "text",
"schema_type": "OBJECT_TREE",
"status": "DRAFT",
"suspension_date": 0
}
]
}The datamart to get the schemas from.
The type of schema to create
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"creation_date": 0,
"last_modification_date": 0,
"publication_date": 0,
"datamart_id": "text",
"schema_type": "OBJECT_TREE",
"status": "DRAFT",
"suspension_date": 0
}
}Get argument by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/directives/{directive_id}/arguments/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
}Search record values
locale
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}/graphdb_runtime_schemas/{schema_id}/field/index={index_name}/object_tree_field_path={object_tree_field_path}/reference_tables/records HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"status": "ok",
"total": 1,
"max_results": 1,
"count": 1,
"data": [
{
"display_value": "text",
"locale": "fr-FR",
"value": "text"
}
]
}Get object tree input stream configs
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/input_stream_configs HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"status": "ok",
"max_results": 1,
"data": [
{
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
],
"count": 1,
"total": 1
}Create input stream config
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/input_stream_configs HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 267
{
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"end_hour": 0,
"value": 0
}
}{
"status": "ok",
"data": {
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
}Update input stream config
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/input_stream_configs?data_warehouse_table_id=text HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 267
{
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"end_hour": 0,
"value": 0
}
}{
"status": "ok",
"data": {
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
}Delete input stream config
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/input_stream_configs?data_warehouse_table_id=text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get scalar fields
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/scalar_fields HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"max_results": 1,
"data": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"status": "ok",
"first_result": 1,
"total": 1
}Create scalar field
falsefalsefalsefalseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/scalar_fields HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 388
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}{
"status": "ok",
"data": {
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
}Get object trees relationships
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/relationships HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"max_results": 1,
"total": 1,
"status": "ok",
"count": 1,
"first_result": 1,
"data": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": "[Circular Reference]"
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
]
}Create object trees relationships
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/relationships HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 1338
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
"[Circular Reference]"
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}{
"status": "ok",
"data": {
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": "[Circular Reference]",
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
}Get object type definition
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
"[Circular Reference]"
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}Update object type definition
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 1338
{
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": "[Circular Reference]"
}
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}{
"status": "ok",
"data": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
"[Circular Reference]"
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}Delete object type definition
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get object tree event name
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/event_names/{event_name_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"type": "STATIC",
"id": "text",
"event_name": "text"
}
}Update object tree event name
Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/event_names/{event_name_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"type": "STATIC",
"event_name": "text"
}{
"status": "ok",
"data": {
"type": "STATIC",
"id": "text",
"event_name": "text"
}
}Delete object tree event name
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/event_names/{event_name_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get fields
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/fields HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"data": [
{
"name": "text",
"id": "text",
"field_type": "text",
"object_like_type_id": "text",
"runtime_schema_id": "text"
}
],
"count": 1,
"status": "ok",
"total": 1,
"first_result": 1,
"max_results": 1
}Get object tree input stream configs
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/input_stream_configs HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
}Create input stream config
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/input_stream_configs HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 267
{
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"end_hour": 0,
"value": 0
}
}{
"status": "ok",
"data": {
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
}Update input stream config
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/input_stream_configs HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 267
{
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"end_hour": 0,
"value": 0
}
}{
"status": "ok",
"data": {
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
}Delete input stream config
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/object_type_definitions/{object_type_definition_id}/input_stream_configs HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Aggregates all object trees of the schema and returns the full ORM schema
The datamart owning the schema.
The schema to get as full text.
The object tree mapping group to get as text.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_orm_schemas/{schema_id}/text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
textSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"max_results": 1,
"total": 1,
"status": "ok",
"first_result": 1,
"count": 1,
"data": [
{
"id": "text",
"runtime_schema_id": "text",
"type": "OBJECT_TYPE",
"name": "text"
}
]
}Get data warehouse live ingestion config for object tree
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/data_warehouse_live_ingestion_config HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"creation_ts": 0,
"bucket_name": "text",
"data_warehouse_id": "text"
}
}Create or update data warehouse live ingestion config for object tree
0Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/data_warehouse_live_ingestion_config HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 146
{
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"bucket_name": "text",
"data_warehouse_id": "text"
}{
"status": "ok",
"data": {
"id": "text",
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"creation_ts": 0,
"bucket_name": "text",
"data_warehouse_id": "text"
}
}Delete data warehouse live ingestion config for object tree
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/data_warehouse_live_ingestion_config HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get directive by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/directives/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"type": "OBJECT_TYPE",
"name": "text"
}
}Enable or disable predefined object tree like mappings, clustering_cohort
Success response
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/predefined_object_trees/action HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"action": "ENABLE",
"args": {
"predefined_object_tree": "text"
}
}{
"status": "ok"
}The datamart owning the schema.
The schema to clone.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/clone HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"creation_date": 0,
"last_modification_date": 0,
"publication_date": 0,
"datamart_id": "text",
"schema_type": "OBJECT_TREE",
"status": "DRAFT",
"suspension_date": 0
}
}Get all schema decorators for this runtime schema.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/schema_decorators HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"total": 1,
"data": [
{
"help_text": "text",
"hidden": false,
"field_name": "text",
"id": "text",
"datamart_id": "text",
"object_name": "text",
"locale": "fr-FR",
"label": "text",
"schema_id": "text"
}
],
"max_results": 1,
"count": 1,
"status": "ok"
}Update all the schema decorators for this runtime schema.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/schema_decorators HTTP/1.1
Host: api.mediarithmics.local
Content-Type: text/csv
Accept: */*
Content-Length: 6
"text"{
"status": "ok",
"data": [
{
"help_text": "text",
"hidden": false,
"field_name": "text",
"id": "text",
"datamart_id": "text",
"object_name": "text",
"locale": "fr-FR",
"label": "text",
"schema_id": "text"
}
],
"total": 1,
"first_result": 1,
"count": 1,
"max_results": 1
}Delete all schema decorators for a given schema id
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/schema_decorators HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get directives
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/directives HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"count": 1,
"max_results": 1,
"total": 1,
"first_result": 1,
"data": [
{
"id": "text",
"type": "OBJECT_TYPE",
"name": "text"
}
]
}Get field arguments
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/fields/{field_id}/directives/{directive_id}/arguments HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"count": 1,
"total": 1,
"max_results": 1,
"first_result": 1,
"data": [
{
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
]
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/schema_check HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 16
{
"query": "text"
}{
"status": "ok",
"data": {
"type": "VALID"
}
}The datamart owning the schema.
The schema to get as text.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
textThe datamart owning the schema.
The schema to update with text.
Success response
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/text HTTP/1.1
Host: api.mediarithmics.local
Content-Type: text/plain
Accept: */*
Content-Length: 6
"text"{
"status": "ok"
}The datamart owning the schema.
The schema to publish.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/publication HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"datamart_id": "text",
"schema_id": "text",
"tree_indices": [
{
"driver_version_major_number": 0,
"init_job": "CURSOR_BASED_FULL_BUILD",
"init_strategy": "AUTOMATIC",
"driver_version_minor_number": 0,
"object_tree_index_cluster_id": "text",
"index_id": "text",
"new_index": false,
"index_name": "text",
"index_size": "SMALL"
}
]
}
}Get field argument by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/fields/{field_id}/directives/{directive_id}/arguments/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
}Get the tree index selections for the schema
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/tree_index_selections HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"total": 1,
"status": "ok",
"count": 1,
"max_results": 1,
"data": [
{},
{
"size": "SMALL",
"technical_device_migrated": false,
"index_name": "text",
"status": "DRAFT",
"driver_version_minor_number": 0,
"datamart_id": 0,
"init_strategy": "AUTOMATIC",
"driver_version_major_number": 0,
"id": 0,
"index_id": 0,
"object_tree_index_cluster_id": "text",
"datafarm": "text"
}
],
"first_result": 1
}Get arguments
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/directives/{directive_id}/arguments HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"total": 1,
"count": 1,
"max_results": 1,
"data": [
{
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
],
"status": "ok"
}Get field directives
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/fields/{field_id}/directives HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"max_results": 1,
"status": "ok",
"count": 1,
"data": [
{
"runtime_schema_id": "text",
"field_id": "text",
"id": "text",
"comment": "text",
"object_like_type_id": "text",
"name": "text"
}
],
"total": 1
}Get object tree identifier
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/identifiers/{object_tree_identifier_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
}Update object tree identifier
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/identifiers/{object_tree_identifier_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}{
"status": "ok",
"data": {
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
}Delete object tree identifier
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/identifiers/{object_tree_identifier_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get object tree channel source
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/channel_sources/{channel_source_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"type": "STATIC",
"id": "text",
"channel_id": "text"
}
}Update object tree channel source
Success !
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/channel_sources/{channel_source_id} HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"type": "STATIC",
"channel_id": "text"
}{
"status": "ok",
"data": {
"type": "STATIC",
"id": "text",
"channel_id": "text"
}
}Delete object tree channel source
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/channel_sources/{channel_source_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Set data warehouse live ingestion credentials for object tree
Success response
Error response
Error response
Error response
Error response
Error response
Error response
PUT /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/data_warehouse_live_ingestion_credentials HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 118
{
"type": "OBJECT_STORAGE",
"endpoint": "text",
"secret_key": "text",
"protocol": "GS",
"s3_prefix": "text",
"access_key": "text"
}{
"status": "ok"
}Get argument by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/directives/{directive_id}/inputValues/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
}Get data warehouse live ingestion initial config script
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/data_warehouse_live_ingestion_config/initial_config_script HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
textFind the schema decorator matching criteria
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/schema_decorators/object_name={object_name}/field_name={field_name} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"help_text": "text",
"hidden": false,
"field_name": "text",
"id": "text",
"datamart_id": "text",
"object_name": "text",
"locale": "fr-FR",
"label": "text",
"schema_id": "text"
}
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"count": 1,
"status": "ok",
"total": 1,
"max_results": 1,
"data": [
{
"id": "text",
"input_stream_configs": [
{
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
],
"relation_cardinality": "ONE_TO_ONE",
"relation_name": "text",
"data_source_type": "DATA_WAREHOUSE",
"data_warehouse_id": "text",
"channel_source": {
"type": "STATIC",
"id": "text",
"channel_id": "text"
},
"computed_field_technical_name": "text",
"data_warehouse_live_ingestion_config": {
"id": "text",
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"creation_ts": 0,
"bucket_name": "text",
"data_warehouse_id": "text"
},
"description": "text",
"cloned_from": "text",
"name": "text",
"datamart_schema_id": "text",
"object_type_definition": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": "[Circular Reference]"
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
},
"user_identifiers": [
{
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
],
"event_name": {
"type": "STATIC",
"id": "text",
"event_name": "text"
},
"object_tree_type": "Custom",
"activity_type": "TOUCH"
}
]
}Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 2308
{
"input_stream_configs": [
{
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"end_hour": 0,
"value": 0
}
}
],
"relation_cardinality": "ONE_TO_ONE",
"relation_name": "text",
"data_source_type": "DATA_WAREHOUSE",
"data_warehouse_id": "text",
"channel_source": {
"type": "STATIC",
"channel_id": "text"
},
"computed_field_technical_name": "text",
"data_warehouse_live_ingestion_config": {
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"bucket_name": "text",
"data_warehouse_id": "text"
},
"description": "text",
"cloned_from": "text",
"name": "text",
"datamart_schema_id": "text",
"object_type_definition": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"relationships": [
"[Circular Reference]"
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
},
"user_identifiers": [
{
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
],
"event_name": {
"type": "STATIC",
"event_name": "text"
},
"object_tree_type": "Custom",
"activity_type": "TOUCH"
}{
"status": "ok",
"data": {
"id": "text",
"input_stream_configs": [
{
"working_table_name": "text",
"strategy": {
"type": "MODIFIED_TS",
"ts_column": "text",
"from": 0,
"unit": "SECOND"
},
"data_warehouse_table_id": "text",
"object_type_definition_id": "text",
"use_processing_pipeline": false,
"document_import_id": "text",
"scheduling": {
"type": "FREQUENCY",
"start_hour": 0,
"unit": "MINUTE",
"time_zone": "text",
"end_hour": 0,
"value": 0
}
}
],
"relation_cardinality": "ONE_TO_ONE",
"relation_name": "text",
"data_source_type": "DATA_WAREHOUSE",
"data_warehouse_id": "text",
"channel_source": {
"type": "STATIC",
"id": "text",
"channel_id": "text"
},
"computed_field_technical_name": "text",
"data_warehouse_live_ingestion_config": {
"id": "text",
"datamart_id": "text",
"name": "text",
"status": "WAITING_FOR_TABLE_CREATION",
"object_tree_id": "text",
"creation_ts": 0,
"bucket_name": "text",
"data_warehouse_id": "text"
},
"description": "text",
"cloned_from": "text",
"name": "text",
"datamart_schema_id": "text",
"object_type_definition": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": [
{
"relation_name": "text",
"cloned_from": "text",
"cardinality": "ONE_TO_ONE",
"id": "text",
"child": {
"input_mapping_path": "text",
"update_value_object": false,
"object_name": "text",
"id": "text",
"relationships": "[Circular Reference]",
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
}
}
],
"cloned_from": "text",
"mappings": [
{
"table_id": "text",
"mapping_group_id": "text"
}
],
"fields": [
{
"cloned_from": "text",
"input_mapping": {
"type": "DATA_WAREHOUSE",
"data_warehouse_column_id": "text"
},
"field_name": "text",
"optional": false,
"primary_key": false,
"id": "text",
"tree_index_data_type": "TEXT",
"foreign_key": {
"type": "FIELD_NAME",
"field_name": "text"
},
"mappings": [
{
"json_path": "text",
"mapping_group_id": "text"
}
],
"field_type": "text",
"tree_index": {
"id": "text",
"name": "text"
},
"reference_table": {
"id": "text",
"type": "CORE_OBJECT",
"model_type": "text"
},
"list": false,
"predefined": false
}
],
"input_mapping_table": "text",
"input_mapping_column": "text"
},
"user_identifiers": [
{
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
],
"event_name": {
"type": "STATIC",
"id": "text",
"event_name": "text"
},
"object_tree_type": "Custom",
"activity_type": "TOUCH"
}
}Create object tree event name
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/event_names HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"type": "STATIC",
"event_name": "text"
}{
"status": "ok",
"data": {
"type": "STATIC",
"id": "text",
"event_name": "text"
}
}Get input values
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/directives/{directive_id}/inputValues HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": [
{
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
],
"count": 1,
"max_results": 1,
"total": 1,
"first_result": 1
}The datamart owning the schema.
The schema to look for.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"id": "text",
"creation_date": 0,
"last_modification_date": 0,
"publication_date": 0,
"datamart_id": "text",
"schema_type": "OBJECT_TREE",
"status": "DRAFT",
"suspension_date": 0
}
}The datamart owning the schema.
The schema to delete.
Success response
Error response
Error response
Error response
Error response
Error response
Error response
DELETE /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok"
}Get the tree index selections for the schema by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/tree_index_selections/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"size": "SMALL",
"technical_device_migrated": false,
"index_name": "text",
"status": "DRAFT",
"driver_version_minor_number": 0,
"datamart_id": 0,
"init_strategy": "AUTOMATIC",
"driver_version_major_number": 0,
"id": 0,
"index_id": 0,
"object_tree_index_cluster_id": "text",
"datafarm": "text"
}
}Get object trees indices
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_tree_indices HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"data": [
{
"id": "text",
"name": "text"
}
],
"max_results": 1,
"first_result": 1,
"status": "ok",
"total": 1
}Get field directive by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/fields/{field_id}/directives/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"runtime_schema_id": "text",
"field_id": "text",
"id": "text",
"comment": "text",
"object_like_type_id": "text",
"name": "text"
}
}Get object types whole structure
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/deep HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"first_result": 1,
"count": 1,
"max_results": 1,
"status": "ok",
"data": [
{
"runtime_schema_id": "text",
"fields": [
{
"name": "text",
"id": "text",
"directives": [
{
"runtime_schema_id": "text",
"name": "text",
"field_id": "text",
"arguments": [
{
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
],
"comment": "text",
"id": "text",
"object_like_type_id": "text"
}
],
"decorator": {
"help_text": "text",
"hidden": false,
"field_name": "text",
"id": "text",
"datamart_id": "text",
"object_name": "text",
"locale": "fr-FR",
"label": "text",
"schema_id": "text"
},
"field_type": "text",
"runtime_schema_id": "text",
"object_like_type_id": "text"
}
],
"directives": [
{
"id": "text",
"type": "OBJECT_TYPE",
"name": "text",
"arguments": [
{
"id": "text",
"directive_id": "text",
"name": "text",
"value": "text"
}
]
}
],
"type": "OBJECT_TYPE",
"id": "text",
"name": "text"
}
],
"total": 1
}Get graphdb ORM schema as text
The datamart owning the schema.
The schema to get as text.
The object tree to get as text.
The object tree mapping group to get as text.
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_orm_schemas/{schema_id}/object_trees/{object_tree_id}/text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
textGet field by id
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_types/{object_type_id}/fields/{id} HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": {
"name": "text",
"id": "text",
"field_type": "text",
"object_like_type_id": "text",
"runtime_schema_id": "text"
}
}Create object tree channel source
Success !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/channel_sources HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 37
{
"type": "STATIC",
"channel_id": "text"
}{
"status": "ok",
"data": {
"type": "STATIC",
"id": "text",
"channel_id": "text"
}
}Get object trees identifiers
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/identifiers HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"total": 1,
"first_result": 1,
"data": [
{
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
],
"max_results": 1,
"count": 1,
"status": "ok"
}Create an object tree identifier
falseSuccess !
Error response
Error response
Error response
Error response
Error response
Error response
POST /v1/datamarts/{datamart_id}/graphdb_runtime_schemas/{schema_id}/object_trees/{object_tree_id}/identifiers HTTP/1.1
Host: api.mediarithmics.local
Content-Type: application/json
Accept: */*
Content-Length: 120
{
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}{
"status": "ok",
"data": {
"id": "text",
"main": false,
"realm_id": "text",
"location": {
"type": "COLUMN_LOCATION",
"column_id": "text"
},
"identifier_type": "EMAIL_HASH"
}
}Last updated
Was this helpful?