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

# Validate a .dataapp package (zip upload, nothing persisted)

> **Deprecated**: the contract channel replaces the `.dataapp`
package flow — assemble/self-check via POST
/data-apps/contract/assemble and submit through the portal's
contract import wizard. Kept for the built-in console and existing
tests; removal will be scheduled separately.

Upload a `.dataapp` package (raw zip as the request body) →
unpack → the same validation pipeline; nothing persisted.

Validation only, echoing the unpacked files: **after it passes you
still call POST /data-apps to publish** (two-phase publishing
stands; upload is not a bypass around validation). The package may
contain one wrapper directory around the content.



## OpenAPI

````yaml /jp/datahub/api/openapi.json post /v1/data-apps/package
openapi: 3.1.0
info:
  title: DataHub API
  version: 0.2.0
  description: Public /v1 contract of Octoparse DataHub. Internal channels are excluded.
servers:
  - url: https://api-datahub.octoparse.com
security:
  - bearerAuth: []
tags:
  - name: Discovery
    description: >-
      Anonymous access: platform metadata (currency), data app search, detail
      and input contract, machine-readable manifest spec.
  - name: Publishing
    description: >-
      Self-service publishing channel (API Key auth), two-phase: validate first
      (validate / package, nothing persisted), then publish (POST /data-apps,
      the submission goes live as a new Release). api kind (declarative
      integration) becomes visible on publish; code kind (code package) returns
      202 and enters an async image build; once ready it is promoted to a
      Release, visible and runnable. Poll progress via GET
      /data-apps/{ref}/builds.
  - name: Runs & Results
    description: >-
      Start / query / cancel runs and read result records with pagination.
      Business inputs go in the request body; platform run options (wait,
      max_records) go in query parameters.
  - name: Datasets
    description: >-
      Metadata and record access for platform datasets (including seeded stock
      data).
  - name: Account
    description: Account info and cumulative usage for the current API Key.
  - name: Secrets
    description: >-
      CRUD for upstream credentials (environment entries referenced by manifest
      `runtime.env`). Plaintext is write-only: every read returns a mask.
paths:
  /v1/data-apps/package:
    post:
      tags:
        - Publishing
      summary: Validate a .dataapp package (zip upload, nothing persisted)
      description: |-
        **Deprecated**: the contract channel replaces the `.dataapp`
        package flow — assemble/self-check via POST
        /data-apps/contract/assemble and submit through the portal's
        contract import wizard. Kept for the built-in console and existing
        tests; removal will be scheduled separately.

        Upload a `.dataapp` package (raw zip as the request body) →
        unpack → the same validation pipeline; nothing persisted.

        Validation only, echoing the unpacked files: **after it passes you
        still call POST /data-apps to publish** (two-phase publishing
        stands; upload is not a bypass around validation). The package may
        contain one wrapper directory around the content.
      operationId: check_manifest_package_v1_data_apps_package_post
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DataEnvelope_ManifestPackageResult_'
      deprecated: true
components:
  schemas:
    DataEnvelope_ManifestPackageResult_:
      properties:
        data:
          $ref: '#/components/schemas/ManifestPackageResult'
      type: object
      required:
        - data
      title: DataEnvelope[ManifestPackageResult]
    ManifestPackageResult:
      properties:
        valid:
          type: boolean
          title: Valid
        errors:
          items:
            $ref: '#/components/schemas/ManifestIssue'
          type: array
          title: Errors
        card:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Card
        manifest:
          type: string
          title: Manifest
          default: ''
        files:
          additionalProperties:
            type: string
          type: object
          title: Files
      type: object
      required:
        - valid
      title: ManifestPackageResult
      description: |-
        Validation result of an uploaded package: the verdict plus the extracted
        source files (used to refill the editor; publish after confirmation).
    ManifestIssue:
      properties:
        path:
          type: string
          title: Path
        message:
          type: string
          title: Message
      type: object
      required:
        - path
        - message
      title: ManifestIssue
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: DataHub API Key

````