> ## 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.

# Pull a repo-backed tap script from its branch head

> Re-reads a repository-stored tap script at the configured branch head and reports drift against the tap's pinned commit. With `apply=true`, also advances the pin (a versioned edit).



## OpenAPI

````yaml /openapi.yaml post /api/v1/tap/script/pull
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.11.3
  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/tap/script/pull:
    post:
      tags:
        - Taps
      summary: Pull a repo-backed tap script from its branch head
      description: >-
        Re-reads a repository-stored tap script at the configured branch head
        and reports drift against the tap's pinned commit. With `apply=true`,
        also advances the pin (a versioned edit).
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - tapName
              properties:
                tapName:
                  type: string
                apply:
                  type: string
                  enum:
                    - 'true'
                    - 'false'
                  description: >-
                    Advance the tap's pinned commit to the branch head when
                    drifted
      responses:
        '200':
          description: Drift status
          content:
            application/json:
              schema:
                type: object
                properties:
                  found:
                    type: boolean
                  drifted:
                    type: boolean
                  headCommitSha:
                    type: string
                  pinnedCommitSha:
                    type: string
                  script:
                    type: string
                    description: Present only when drifted — the branch-head source
                  applied:
                    type: boolean
        '500':
          description: Error (tap not found, or tap is not repository-backed)
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````