# Schema changes Detect, refresh, and configure propagation of schema changes for a connection. ## Get schema changes List detected schema changes for a connection. #### Path Parameters **`connection_id`** string required The connection ID. ## Refresh schema Trigger schema discovery to detect new or changed fields and streams. ## Update schema propagation Set how schema changes are handled automatically. #### Request Body **`propagation_strategy`** string required One of: `propagate_fully`, `propagate_columns`, `ignore`, `disable_connection`. ## Returns A schema changes object containing a `changes` array and optional `catalog_diff`. Request ```bash cURL curl "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/connections/conn_abc123/schema-changes" \ -H "Authorization: Bearer $ACCESS_TOKEN" ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") changes = client.knowledge_connectors.get_schema_changes( organization_id="org_xyz789", connection_id="conn_abc123", ) print(changes) ``` ```python Python import requests org_id = "org_xyz789" conn_id = "conn_abc123" url = f"https://api.aitronos.com/v1/organizations/{org_id}/knowledge/connectors/connections/{conn_id}/schema-changes" headers = {"Authorization": "Bearer YOUR_ACCESS_TOKEN"} response = requests.get(url, headers=headers) print(response.json()) ``` ```javascript JavaScript const response = await fetch( "https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/connectors/connections/conn_abc123/schema-changes", { headers: { Authorization: "Bearer YOUR_ACCESS_TOKEN" }, } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "changes": [ { "stream_name": "users", "change_type": "field_added", "field": "phone_number", "field_type": "string" } ], "catalog_diff": {} } ``` ```json 4xx Error { "success": false, "error": { "code": "CONNECTOR_SCHEMA_CHANGE_ERROR", "message": "An error occurred while processing schema changes.", "type": "client_error", "status": 400, "details": {}, "trace_id": "abc-123-def", "timestamp": "2025-12-22T15:30:00Z" } } ``` ## Related Resources - [Manage Connections](/docs/api-reference/knowledge-connectors/connections) - [Stream Configuration](/docs/api-reference/knowledge-connectors/stream-config)