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

# Check what importing a bundle would do

> Verify a bundle and report the plan without writing anything.

The signature, every content hash, and the dependency closure are all
checked here, so a bundle that would be refused fails now rather than
halfway through an import. Each decision comes back as `new`,
`new_version`, or `unchanged`.

**Required roles**: `author` or `workspace_admin`



## OpenAPI

````yaml post /api/decisions/{workspace}/import:dry-run
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/decisions/{workspace}/import:dry-run:
    post:
      tags:
        - Decisions
      summary: Check what importing a bundle would do
      description: |-
        Verify a bundle and report the plan without writing anything.

        The signature, every content hash, and the dependency closure are all
        checked here, so a bundle that would be refused fails now rather than
        halfway through an import. Each decision comes back as `new`,
        `new_version`, or `unchanged`.

        **Required roles**: `author` or `workspace_admin`
      operationId: import_dry_run_api_decisions__workspace__import_dry_run_post
      parameters:
        - name: workspace
          in: path
          required: true
          schema:
            type: string
            maxLength: 64
            pattern: ^[a-z0-9][a-z0-9-]{0,63}$
            description: Workspace slug.
            title: Workspace
          description: Workspace slug.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_import_dry_run_api_decisions__workspace__import_dry_run_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ImportPlanResponse'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Unprocessable Content
        '503':
          description: Service Unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - OAuth2AuthorizationCodeBearer: []
        - APIKeyHeader: []
components:
  schemas:
    Body_import_dry_run_api_decisions__workspace__import_dry_run_post:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
          description: The bundle zip to inspect.
      type: object
      required:
        - file
      title: Body_import_dry_run_api_decisions__workspace__import_dry_run_post
    ImportPlanResponse:
      properties:
        workspace:
          type: string
          title: Workspace
        source_instance:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Instance
        source_workspace:
          anyOf:
            - type: string
            - type: 'null'
          title: Source Workspace
        exported_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Exported At
        exported_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Exported By
        signature_status:
          type: string
          title: Signature Status
        decisions:
          items:
            $ref: '#/components/schemas/ImportPlanEntry'
          type: array
          title: Decisions
        warnings:
          items:
            type: string
          type: array
          title: Warnings
      type: object
      required:
        - workspace
        - signature_status
        - decisions
      title: ImportPlanResponse
    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
    ImportPlanEntry:
      properties:
        key:
          type: string
          title: Key
        name:
          type: string
          title: Name
        source_version:
          type: integer
          title: Source Version
        source_sha:
          type: string
          title: Source Sha
        status:
          type: string
          title: Status
          description: >-
            `new` (decision does not exist here), `new_version` (decision
            exists, content differs), or `unchanged` (identical content already
            stored — import is a no-op).
        existing_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Existing Version
          description: The version already holding this content, when unchanged.
      type: object
      required:
        - key
        - name
        - source_version
        - source_sha
        - status
      title: ImportPlanEntry
  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

````