curl -X POST "https://YOUR_BASE_URL/comparisons/execute_multiple" \
-H "Authorization: Bearer <api-key>" \
-H "Workspace-Id: <workspace-id>" \
-H "Content-Type: application/json" \
-d '{
"agent_run_id": "aaaaaaaa-1111-2222-3333-444444444444",
"comparison_agent_configs": [
{
"id": 1,
"configuration": {
"name": "orders comparison",
"source_datasource_id": "aaaaaaaa-0000-0000-0000-000000000001",
"target_datasource_id": "bbbbbbbb-0000-0000-0000-000000000002",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "total"],
"target_columns": ["order_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"]
}
}
}
]
}'
{
"message": "Comparisons submitted for execution",
"mapped_run_ids": {
"1": 1043
}
}
Execute a batch of comparisons as part of an agent run.
curl -X POST "https://YOUR_BASE_URL/comparisons/execute_multiple" \
-H "Authorization: Bearer <api-key>" \
-H "Workspace-Id: <workspace-id>" \
-H "Content-Type: application/json" \
-d '{
"agent_run_id": "aaaaaaaa-1111-2222-3333-444444444444",
"comparison_agent_configs": [
{
"id": 1,
"configuration": {
"name": "orders comparison",
"source_datasource_id": "aaaaaaaa-0000-0000-0000-000000000001",
"target_datasource_id": "bbbbbbbb-0000-0000-0000-000000000002",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "total"],
"target_columns": ["order_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"]
}
}
}
]
}'
{
"message": "Comparisons submitted for execution",
"mapped_run_ids": {
"1": 1043
}
}
Bearer <api-key>Show comparison_agent_configs[]
configuration schema.curl -X POST "https://YOUR_BASE_URL/comparisons/execute_multiple" \
-H "Authorization: Bearer <api-key>" \
-H "Workspace-Id: <workspace-id>" \
-H "Content-Type: application/json" \
-d '{
"agent_run_id": "aaaaaaaa-1111-2222-3333-444444444444",
"comparison_agent_configs": [
{
"id": 1,
"configuration": {
"name": "orders comparison",
"source_datasource_id": "aaaaaaaa-0000-0000-0000-000000000001",
"target_datasource_id": "bbbbbbbb-0000-0000-0000-000000000002",
"source_dataset_id": "cccccccc-0000-0000-0000-000000000003",
"target_dataset_id": "dddddddd-0000-0000-0000-000000000004",
"configuration": {
"source_columns": ["order_id", "total"],
"target_columns": ["order_id", "total"],
"primary_keys_source": ["order_id"],
"primary_keys_target": ["order_id"]
}
}
}
]
}'
{
"message": "Comparisons submitted for execution",
"mapped_run_ids": {
"1": 1043
}
}