Investigation Management
Manage investigations within mindzieStudio projects. Create, retrieve, update, and delete investigations that contain notebooks and define process mining analysis workflows.
Connectivity Testing
Unauthorized Ping
GET /api/{tenantId}/{projectId}/investigation/unauthorized-ping
Test endpoint that does not require authentication. Use this to verify network connectivity.
Response
Ping Successful
Authenticated Ping
GET /api/{tenantId}/{projectId}/investigation/ping
Authenticated ping endpoint to verify API access for a specific tenant and project.
Response (200 OK)
Ping Successful (tenant id: {tenantId})
List All Investigations
GET /api/{tenantId}/{projectId}/investigation
Retrieves a paginated list of all investigations within the specified project.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tenantId |
GUID | Yes | The tenant identifier |
projectId |
GUID | Yes | The project identifier |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
page |
integer | 1 | Page number for pagination |
pageSize |
integer | 50 | Number of items per page (max recommended: 100) |
Response (200 OK)
{
"investigations": [
{
"investigationId": "11111111-2222-3333-4444-555555555555",
"projectId": "87654321-4321-4321-4321-210987654321",
"investigationName": "Order Analysis",
"investigationDescription": "Process mining analysis of order workflow",
"datasetId": "12345678-1234-1234-1234-123456789012",
"dateCreated": "2024-01-15T10:30:00Z",
"dateModified": "2024-01-20T14:45:00Z",
"createdBy": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"modifiedBy": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"investigationOrder": 1.0,
"isUsedForOperationCenter": false,
"investigationFolderId": null,
"notebookCount": 3
}
],
"totalCount": 5,
"page": 1,
"pageSize": 50
}
Investigation Object Fields
| Field | Type | Description |
|---|---|---|
investigationId |
GUID | Unique identifier for the investigation |
projectId |
GUID | Project this investigation belongs to |
investigationName |
string | Display name of the investigation |
investigationDescription |
string | Description of the investigation |
datasetId |
GUID | The dataset this investigation analyzes |
dateCreated |
datetime | When the investigation was created |
dateModified |
datetime | When the investigation was last modified |
createdBy |
GUID | User who created the investigation |
modifiedBy |
GUID | User who last modified the investigation |
investigationOrder |
decimal | Display order within the project |
isUsedForOperationCenter |
boolean | Whether used for real-time monitoring |
investigationFolderId |
GUID | Optional folder for organization |
notebookCount |
integer | Number of notebooks in the investigation |
Get Investigation Details
GET /api/{tenantId}/{projectId}/investigation/{investigationId}
Retrieves detailed information for a specific investigation.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tenantId |
GUID | Yes | The tenant identifier |
projectId |
GUID | Yes | The project identifier |
investigationId |
GUID | Yes | The investigation identifier |
Response (200 OK)
Same structure as the investigation object in the list response.
Error Responses
Not Found (404):
{
"error": "Investigation not found",
"investigationId": "11111111-2222-3333-4444-555555555555"
}
Create Investigation
POST /api/{tenantId}/{projectId}/investigation
Creates a new investigation linked to an existing dataset. A main notebook is automatically created.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tenantId |
GUID | Yes | The tenant identifier |
projectId |
GUID | Yes | The project identifier |
Request Body
{
"investigationName": "Order Analysis",
"investigationDescription": "Process mining analysis of order workflow",
"datasetId": "12345678-1234-1234-1234-123456789012",
"isUsedForOperationCenter": false
}
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
investigationName |
string | Yes | Investigation name |
investigationDescription |
string | No | Description of the investigation |
datasetId |
GUID | Yes | The dataset to analyze |
isUsedForOperationCenter |
boolean | No | Enable for real-time monitoring (default: false) |
Response (201 Created)
Returns the created investigation object (same structure as Get Investigation).
Error Responses
Bad Request (400):
{
"error": "Dataset not found with ID '12345678-1234-1234-1234-123456789012'"
}
Update Investigation
PUT /api/{tenantId}/{projectId}/investigation/{investigationId}
Updates an existing investigation's properties. All fields are optional.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tenantId |
GUID | Yes | The tenant identifier |
projectId |
GUID | Yes | The project identifier |
investigationId |
GUID | Yes | The investigation identifier |
Request Body
{
"investigationName": "Updated Analysis Name",
"investigationDescription": "Updated description",
"isUsedForOperationCenter": true
}
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
investigationName |
string | No | New investigation name |
investigationDescription |
string | No | New description |
isUsedForOperationCenter |
boolean | No | Enable/disable operation center |
Response (200 OK)
Returns the updated investigation object.
Error Responses
Not Found (404):
{
"error": "Investigation not found",
"investigationId": "11111111-2222-3333-4444-555555555555"
}
Delete Investigation
DELETE /api/{tenantId}/{projectId}/investigation/{investigationId}
Permanently deletes an investigation and ALL associated notebooks.
WARNING: This is a DESTRUCTIVE operation that CANNOT be undone.
Cascade Delete Includes
- All notebooks in the investigation
- All block configurations
- All execution history
- All analysis results
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
tenantId |
GUID | Yes | The tenant identifier |
projectId |
GUID | Yes | The project identifier |
investigationId |
GUID | Yes | The investigation identifier |
Response (204 No Content)
No response body on successful deletion.
Error Responses
Not Found (404):
{
"error": "Investigation not found",
"investigationId": "11111111-2222-3333-4444-555555555555"
}
Implementation Examples
cURL
# List all investigations
curl -X GET "https://your-mindzie-instance.com/api/12345678-1234-1234-1234-123456789012/87654321-4321-4321-4321-210987654321/investigation" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
# Get investigation details
curl -X GET "https://your-mindzie-instance.com/api/12345678-1234-1234-1234-123456789012/87654321-4321-4321-4321-210987654321/investigation/11111111-2222-3333-4444-555555555555" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
# Create a new investigation
curl -X POST "https://your-mindzie-instance.com/api/12345678-1234-1234-1234-123456789012/87654321-4321-4321-4321-210987654321/investigation" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"investigationName": "Q4 Analysis",
"investigationDescription": "Quarterly order analysis",
"datasetId": "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee"
}'
# Update an investigation
curl -X PUT "https://your-mindzie-instance.com/api/12345678-1234-1234-1234-123456789012/87654321-4321-4321-4321-210987654321/investigation/11111111-2222-3333-4444-555555555555" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"investigationName": "Q4 Analysis - Final",
"investigationDescription": "Updated description"
}'
# Delete an investigation (CAUTION: Irreversible!)
curl -X DELETE "https://your-mindzie-instance.com/api/12345678-1234-1234-1234-123456789012/87654321-4321-4321-4321-210987654321/investigation/11111111-2222-3333-4444-555555555555" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"
Python
import requests
TENANT_ID = '12345678-1234-1234-1234-123456789012'
PROJECT_ID = '87654321-4321-4321-4321-210987654321'
BASE_URL = 'https://your-mindzie-instance.com'
class InvestigationManager:
def __init__(self, token):
self.headers = {
'Authorization': f'Bearer {token}',
'Content-Type': 'application/json'
}
def list_investigations(self, page=1, page_size=50):
"""List all investigations in the project."""
url = f'{BASE_URL}/api/{TENANT_ID}/{PROJECT_ID}/investigation'
params = {'page': page, 'pageSize': page_size}
response = requests.get(url, headers=self.headers, params=params)
response.raise_for_status()
return response.json()
def get_investigation(self, investigation_id):
"""Get investigation details."""
url = f'{BASE_URL}/api/{TENANT_ID}/{PROJECT_ID}/investigation/{investigation_id}'
response = requests.get(url, headers=self.headers)
response.raise_for_status()
return response.json()
def create_investigation(self, name, dataset_id, description='', is_operation_center=False):
"""Create a new investigation."""
url = f'{BASE_URL}/api/{TENANT_ID}/{PROJECT_ID}/investigation'
payload = {
'investigationName': name,
'investigationDescription': description,
'datasetId': dataset_id,
'isUsedForOperationCenter': is_operation_center
}
response = requests.post(url, json=payload, headers=self.headers)
response.raise_for_status()
return response.json()
def update_investigation(self, investigation_id, name=None, description=None, is_operation_center=None):
"""Update an existing investigation."""
url = f'{BASE_URL}/api/{TENANT_ID}/{PROJECT_ID}/investigation/{investigation_id}'
payload = {}
if name:
payload['investigationName'] = name
if description is not None:
payload['investigationDescription'] = description
if is_operation_center is not None:
payload['isUsedForOperationCenter'] = is_operation_center
response = requests.put(url, json=payload, headers=self.headers)
response.raise_for_status()
return response.json()
def delete_investigation(self, investigation_id):
"""Delete an investigation (CAUTION: Irreversible!)."""
url = f'{BASE_URL}/api/{TENANT_ID}/{PROJECT_ID}/investigation/{investigation_id}'
response = requests.delete(url, headers=self.headers)
response.raise_for_status()
return None # 204 No Content
# Usage
manager = InvestigationManager('your-auth-token')
# List all investigations
result = manager.list_investigations()
print(f"Total investigations: {result['totalCount']}")
for inv in result['investigations']:
print(f"- {inv['investigationName']}: {inv['notebookCount']} notebooks")
# Create a new investigation
new_inv = manager.create_investigation(
name='API Test Investigation',
dataset_id='aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
description='Created via API'
)
print(f"Created: {new_inv['investigationId']}")
JavaScript/Node.js
const TENANT_ID = '12345678-1234-1234-1234-123456789012';
const PROJECT_ID = '87654321-4321-4321-4321-210987654321';
const BASE_URL = 'https://your-mindzie-instance.com';
class InvestigationManager {
constructor(token) {
this.headers = {
'Authorization': `Bearer ${token}`,
'Content-Type': 'application/json'
};
}
async listInvestigations(page = 1, pageSize = 50) {
const url = `${BASE_URL}/api/${TENANT_ID}/${PROJECT_ID}/investigation?page=${page}&pageSize=${pageSize}`;
const response = await fetch(url, { headers: this.headers });
if (!response.ok) throw new Error(`Failed: ${response.status}`);
return await response.json();
}
async getInvestigation(investigationId) {
const url = `${BASE_URL}/api/${TENANT_ID}/${PROJECT_ID}/investigation/${investigationId}`;
const response = await fetch(url, { headers: this.headers });
if (!response.ok) throw new Error(`Failed: ${response.status}`);
return await response.json();
}
async createInvestigation(name, datasetId, description = '', isOperationCenter = false) {
const url = `${BASE_URL}/api/${TENANT_ID}/${PROJECT_ID}/investigation`;
const response = await fetch(url, {
method: 'POST',
headers: this.headers,
body: JSON.stringify({
investigationName: name,
investigationDescription: description,
datasetId: datasetId,
isUsedForOperationCenter: isOperationCenter
})
});
if (!response.ok) throw new Error(`Failed: ${response.status}`);
return await response.json();
}
async updateInvestigation(investigationId, updates) {
const url = `${BASE_URL}/api/${TENANT_ID}/${PROJECT_ID}/investigation/${investigationId}`;
const response = await fetch(url, {
method: 'PUT',
headers: this.headers,
body: JSON.stringify(updates)
});
if (!response.ok) throw new Error(`Failed: ${response.status}`);
return await response.json();
}
async deleteInvestigation(investigationId) {
const url = `${BASE_URL}/api/${TENANT_ID}/${PROJECT_ID}/investigation/${investigationId}`;
const response = await fetch(url, {
method: 'DELETE',
headers: this.headers
});
if (!response.ok) throw new Error(`Failed: ${response.status}`);
return null; // 204 No Content
}
}
// Usage
const manager = new InvestigationManager('your-auth-token');
const investigations = await manager.listInvestigations();
console.log(`Found ${investigations.totalCount} investigations`);
investigations.investigations.forEach(inv => {
console.log(`- ${inv.investigationName}: ${inv.notebookCount} notebooks`);
});
// Create a new investigation
const newInv = await manager.createInvestigation(
'API Test Investigation',
'aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee',
'Created via API'
);
console.log(`Created: ${newInv.investigationId}`);