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

# Remove lineage between datasets

> Remove exactly the edges named, and nothing else.

Removing a table edge removes the column edges that came from it as
well, because a column edge whose table edge is gone is lineage no
view will draw.



## OpenAPI

````yaml post /api/lineage/disconnect
openapi: 3.1.0
info:
  title: Nx1 AI API
  description: |

    AI API for Nx1 Data Platform Management and Automated Data Tasks.

    Authentication is required via PSK in Authorization header.

    Default PSK is | [ask a friend] |
  version: 0.10.2
servers: []
security: []
paths:
  /api/lineage/disconnect:
    post:
      tags:
        - Lineage
      summary: Remove lineage between datasets
      description: |-
        Remove exactly the edges named, and nothing else.

        Removing a table edge removes the column edges that came from it as
        well, because a column edge whose table edge is gone is lineage no
        view will draw.
      operationId: disconnect_lineage_api_lineage_disconnect_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LineageRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LineageResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
        '502':
          description: Bad Gateway
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    LineageRequest:
      properties:
        dataset:
          type: string
          title: Dataset
          description: 'The downstream dataset: a URN, or catalog.schema.table.'
        upstreams:
          items:
            type: string
          type: array
          title: Upstreams
          description: Datasets that feed it.
        column_edges:
          items:
            $ref: '#/components/schemas/ColumnEdge'
          type: array
          title: Column Edges
          description: Column-level edges into it.
      type: object
      required:
        - dataset
      title: LineageRequest
      description: |-
        Edges to add to, or remove from, one dataset.

        `upstreams` are table-level edges; `column_edges` are the
        fine-grained ones. A column edge implies its table edge, so naming
        only columns is enough.
    LineageResponse:
      properties:
        dataset:
          type: string
          title: Dataset
        upstreams:
          items:
            type: string
          type: array
          title: Upstreams
        column_edges:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Column Edges
        tables_added:
          type: integer
          title: Tables Added
          default: 0
        columns_added:
          type: integer
          title: Columns Added
          default: 0
        tables_removed:
          type: integer
          title: Tables Removed
          default: 0
        columns_removed:
          type: integer
          title: Columns Removed
          default: 0
      type: object
      required:
        - dataset
        - upstreams
        - column_edges
      title: LineageResponse
      description: What the dataset's lineage is now, after the change.
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
          description: A brief description of the error that occurred.
        code:
          type: integer
          title: Code
          description: The HTTP status code associated with the error.
          default: 500
      type: object
      required:
        - error
      title: ErrorResponse
    ColumnEdge:
      properties:
        upstream_dataset:
          type: string
          title: Upstream Dataset
          description: 'The source dataset: a URN, or catalog.schema.table.'
        upstream_column:
          type: string
          maxLength: 512
          title: Upstream Column
          description: Its column.
        downstream_column:
          type: string
          maxLength: 512
          title: Downstream Column
          description: The column it feeds, on this dataset.
      type: object
      required:
        - upstream_dataset
        - upstream_column
        - downstream_column
      title: ColumnEdge
      description: One column feeding another.
  securitySchemes:
    OAuth2AuthorizationCodeBearer:
      type: oauth2
      flows:
        authorizationCode:
          scopes: {}
          authorizationUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/auth
          tokenUrl: >-
            https://sso-rapid.rapid.nx1cloud.com/realms/rapid/protocol/openid-connect/token
    APIKeyHeader:
      type: apiKey
      in: header
      name: Authorization-PSK

````

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