> ## Documentation Index
> Fetch the complete documentation index at: https://docs.datris.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Enable order of a catalog's taps

> Groups the catalog's taps into dependency levels: level 1 holds taps that read no other tap's tables, level 2 the taps that read level 1, and so on. A tap's dependencies are its `dependsOn` when set (even `[]`), else its stored `inferredDependsOn`. Per tap: `hasPassingTest` (the last test run succeeded on the tap's current script; a test stamped for an older script, e.g. after an overwrite restore, does not count), `lastRealRunLanded` (`lastRunStatus` is `success` with `lastRunRecordCount` > 0), `blockedBy` (dependencies that have not landed data) and `ready` (tested and not blocked). Taps on a dependency cycle are listed under `cycles`, not in a level. Read-only and not audited. Requires `tap:read`; taps the key may not read (owner or catalog scope) are omitted and named in `warnings`.




## OpenAPI

````yaml /openapi.yaml get /api/v1/catalog/{name}/enable-order
openapi: 3.0.3
info:
  title: Datris API
  description: >
    REST API for the Datris AI Data Platform. Ingest, validate, transform,
    store, and retrieve data.


    For AI agent integration, use the [MCP
    Server](https://docs.datris.ai/mcp-server) instead.
  version: 1.28.0
  contact:
    name: Datris
    url: https://datris.ai
  license:
    name: Apache 2.0
servers:
  - url: http://localhost:8080
    description: Local development
security:
  - ApiKeyAuth: []
paths:
  /api/v1/catalog/{name}/enable-order:
    get:
      tags:
        - Pipelines
      summary: Enable order of a catalog's taps
      description: >
        Groups the catalog's taps into dependency levels: level 1 holds taps
        that read no other tap's tables, level 2 the taps that read level 1, and
        so on. A tap's dependencies are its `dependsOn` when set (even `[]`),
        else its stored `inferredDependsOn`. Per tap: `hasPassingTest` (the last
        test run succeeded on the tap's current script; a test stamped for an
        older script, e.g. after an overwrite restore, does not count),
        `lastRealRunLanded` (`lastRunStatus` is `success` with
        `lastRunRecordCount` > 0), `blockedBy` (dependencies that have not
        landed data) and `ready` (tested and not blocked). Taps on a dependency
        cycle are listed under `cycles`, not in a level. Read-only and not
        audited. Requires `tap:read`; taps the key may not read (owner or
        catalog scope) are omitted and named in `warnings`.
      parameters:
        - name: name
          in: path
          required: true
          schema:
            type: string
          description: Catalog name. `Uncataloged` (any case) is refused.
      responses:
        '200':
          description: The enable order
          content:
            application/json:
              schema:
                type: object
                properties:
                  catalog:
                    type: string
                  levels:
                    type: array
                    items:
                      type: object
                      properties:
                        level:
                          type: integer
                          description: 1-based
                        taps:
                          type: array
                          items:
                            type: object
                            properties:
                              name:
                                type: string
                              enabled:
                                type: boolean
                              cronExpression:
                                type: string
                                nullable: true
                              dependsOn:
                                type: array
                                items:
                                  type: string
                              inferredDependsOn:
                                type: array
                                items:
                                  type: string
                              explicit:
                                type: boolean
                                description: >-
                                  True when `dependsOn` is set and so replaces
                                  the inferred list.
                              hasPassingTest:
                                type: boolean
                              lastRealRunLanded:
                                type: boolean
                              blockedBy:
                                type: array
                                items:
                                  type: string
                              ready:
                                type: boolean
                  cycles:
                    type: array
                    items:
                      type: array
                      items:
                        type: string
                  warnings:
                    type: array
                    items:
                      type: string
                  job:
                    $ref: '#/components/schemas/CatalogEnableJobStatus'
        '400':
          description: Reserved or blank catalog name
        '404':
          description: No tap, pipeline or placeholder carries this catalog
        '500':
          description: Error
components:
  schemas:
    CatalogEnableJobStatus:
      type: object
      description: An ordered enable job. Only `active` is present when there is no job.
      properties:
        active:
          type: boolean
        jobId:
          type: string
        catalog:
          type: string
        startedBy:
          type: string
        startedAt:
          type: integer
          format: int64
        finishedAt:
          type: integer
          format: int64
        cancelRequested:
          type: boolean
        taps:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              level:
                type: integer
              phase:
                type: string
                enum:
                  - pending
                  - testing
                  - enabling
                  - running
                  - waiting
                  - landed
                  - failed
                  - skipped
                  - cancelled
              reason:
                type: string
                nullable: true
              recordCount:
                type: integer
              publisherToken:
                type: string
              rollupStatus:
                type: string
              updatedAt:
                type: integer
                format: int64
        summary:
          type: object
          description: Count of taps per phase.
          additionalProperties:
            type: integer
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.