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

# Move a tap script between storage backends

> Reads the script from its current backend, writes it to the target (built-in object storage or the code repository), and stamps the tap as a versioned edit. Idempotent when the tap is already on the target. Built-in objects are never deleted on migrate-out — version snapshots pin them.



## OpenAPI

````yaml /openapi.yaml post /api/v1/tap/migrate-storage
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/migrate-storage:
    post:
      tags:
        - Taps
      summary: Move a tap script between storage backends
      description: >-
        Reads the script from its current backend, writes it to the target
        (built-in object storage or the code repository), and stamps the tap as
        a versioned edit. Idempotent when the tap is already on the target.
        Built-in objects are never deleted on migrate-out — version snapshots
        pin them.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - tapName
                - target
              properties:
                tapName:
                  type: string
                target:
                  type: string
                  enum:
                    - github
                    - minio
      responses:
        '200':
          description: The migrated tap config
        '400':
          description: Unknown tap, unreadable script, or invalid target
        '500':
          description: Error
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Optional API key for authentication (enabled via application.yaml)

````