Skip to content
OvertCMS Docs

Admin API (Dashboard & Team) System & Portability

Validate or import a portable NDJSON site archive

POST /admin-api/v1/sites/{siteSlug}/import

Requires site:manage capability. Pass dryRun=true to validate without writing. Live imports (dryRun=false) require fresh Step-Up MFA when MFA is enrolled. Accepts multipart/form-data (file) or raw application/x-ndjson up to 64 MiB.

Authentication

Public. No credentials are needed.

Path parameters

  • siteSlug string required

Query parameters

  • dryRun boolean

    Default false

Request body application/x-ndjson required

  • string

Responses

  • 200 Validation or import summary.

    application/json

    • summary ImportSummary required
      Show 9 fields
      • components integer required
      • dryRun boolean required
      • entries integer required
      • errors array of string
      • media integer required
      • postTypes integer required
      • redirects integer required
      • siteSlug string required
      • siteUpdated boolean
    • valid boolean required
  • 400 Error response.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

  • 403 Error response.

    application/json

    • error APIError required
      Canonical error payload returned across all OvertCMS planes.
      Show 6 fields
      • applied boolean required
        Always false on 4xx responses, guaranteeing the mutation was not applied.

        Example false

      • code string required

        Example validation_error

      • details object
      • issues array of ValidationIssue
        Show 7 fields
        • code string required

          Example max_length

        • constraint object
        • field string

          Example seoTitle

        • instruction string

          Example Keep SEO titles under 60 characters for search snippet display.

        • label string

          Example SEO Title

        • message string required

          Example field must be at most 60 graphemes

        • searchEndpoint string

          Example /agent/v1/collections/posts/fields/author/options

      • message string required

        Example entry validation failed

      • retryable boolean required

        Example false

Documentation

Start here