---
updatedAt: 2025-08-03T18:10:57.000Z
agentTools:
  projectIndex: https://developer.intellistack.com/llms.txt
---

# Run schema drift detection

Triggers a manual schema drift detection run for the supplied (organizationId,
integrationId). `integrationId` is required. `organizationId` is optional and
defaults to the organization of the authenticated session, which is also the
organization the `EDIT_DATA_CATALOGS` permission is asserted against when the
field is omitted.

The endpoint is asynchronous when the LaunchDarkly flag
`data-fabric-schema-drift-async-enabled` is ON for the requesting organization
(intended LD default): the cooldown slot is claimed synchronously and the
detection work itself runs in the background on a bounded executor. A successful
dispatch returns `202 Accepted` with no body; the final detection outcome is
observed via the existing integration status events (CONNECTED / FAILED) rather
than the HTTP response.

When the flag is OFF (panic revert per-org or globally, OR when LaunchDarkly is
unreachable / the flag does not exist), the endpoint reverts to the previous
synchronous behaviour and returns `204 No Content` after the detection completes.


# OpenAPI definition

```json
{
  "components": {
    "schemas": {
      "SchemaDriftDetectionRequest": {
        "description": "Request to run schema drift detection",
        "properties": {
          "integrationId": {
            "description": "ID of the integration that provided this entity",
            "format": "uuid",
            "type": "string"
          },
          "organizationId": {
            "description": "Organization that owns this mapped entity. Optional — defaults to the\norganization of the authenticated session when omitted.\n",
            "format": "uuid",
            "type": "string"
          }
        },
        "required": [
          "integrationId"
        ],
        "type": "object"
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "bearerFormat": "JWT",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "title": "Data Catalog",
    "version": "0.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/data-catalog/schema-drift-detection": {
      "post": {
        "description": "Triggers a manual schema drift detection run for the supplied (organizationId,\nintegrationId). `integrationId` is required. `organizationId` is optional and\ndefaults to the organization of the authenticated session, which is also the\norganization the `EDIT_DATA_CATALOGS` permission is asserted against when the\nfield is omitted.\n\nThe endpoint is asynchronous when the LaunchDarkly flag\n`data-fabric-schema-drift-async-enabled` is ON for the requesting organization\n(intended LD default): the cooldown slot is claimed synchronously and the\ndetection work itself runs in the background on a bounded executor. A successful\ndispatch returns `202 Accepted` with no body; the final detection outcome is\nobserved via the existing integration status events (CONNECTED / FAILED) rather\nthan the HTTP response.\n\nWhen the flag is OFF (panic revert per-org or globally, OR when LaunchDarkly is\nunreachable / the flag does not exist), the endpoint reverts to the previous\nsynchronous behaviour and returns `204 No Content` after the detection completes.\n",
        "operationId": "runSchemaDriftDetection",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SchemaDriftDetectionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted — the detection run has been dispatched to the background executor.\nNo response body.\n"
          },
          "204": {
            "description": "No Content — returned when the LaunchDarkly flag\n`data-fabric-schema-drift-async-enabled` is OFF for the requesting\norganization (panic revert, or LaunchDarkly is unreachable / the flag does\nnot exist); the detection completed synchronously.\n"
          },
          "400": {
            "description": "Bad Request — rejected at the request boundary, either because the body is\nabsent (message conversion) or because it omits the required `integrationId`\n(bean validation). No detection work runs and no cooldown slot is claimed.\nThe body is Spring's default validation problem detail rather than\n`ErrorEnvelope`.\n"
          },
          "429": {
            "description": "Too Many Requests — a previous detection for this (organizationId,\nintegrationId) pair is still in progress or finished within the cooldown\nwindow. Retry after the cooldown elapses.\n"
          },
          "503": {
            "description": "Service Unavailable — the schema drift executor is saturated (all worker\nthreads busy and queue full). Retry after a short back-off. Sustained\noccurrences indicate the pool needs tuning via\n`com.formstack.data-catalog.schema-drift-detection.async.max-pool-size`\nor `.queue-capacity`. The cooldown row claimed by the request is released\nbefore the 503 is returned, so the retry is not blocked by cooldown.\n"
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "summary": "Run schema drift detection",
        "tags": [
          "Entity"
        ]
      }
    }
  },
  "servers": [
    {
      "description": "US Production Server",
      "url": "https://api-us.streamline.intellistack.ai"
    },
    {
      "description": "Canada Production Server",
      "url": "https://api-ca.streamline.intellistack.ai"
    }
  ],
  "tags": [
    {
      "description": "v2 Entity Endpoints",
      "name": "Entity"
    }
  ]
}
```