Skip to content
OvertCMS Docs

Admin API (Dashboard & Team) Entries & Batch

Execute up to 50 entry operations in a batch

POST /admin-api/v1/sites/{siteSlug}/collections/{postType}/batch

Executes up to 50 entry operations with per-operation RBAC capability checks (entry:create, entry:edit_all, entry:publish, entry:delete).

Authentication

  • overtcms_access cookie SessionCookie

    HttpOnly SameSite=Lax access token cookie issued by login/setup/refresh. State-changing requests (POST, PATCH, PUT, DELETE) authenticated via cookie must also send a matching same-origin Origin header for CSRF protection.

  • Bearer token BearerJWT

    Human Admin access JWT returned by login/setup/refresh/step-up. Agent API keys (ocms_...) are rejected on the Admin Plane.

Path parameters

  • siteSlug string required
    Site slug.
  • postType string required
    Collection post type slug.

Headers

  • Origin string
    Same-origin header required by CSRF protection on state-changing requests authenticated via overtcms_access cookie.
  • Idempotency-Key string
    Optional unique key (max 128 chars) for atomic mutation deduplication.

Request body application/json required

  • items array of BatchEntryItem required

    min items 1, max items 50

    Show 16 fields
    • bodyPatches map of array of BodyPatch
    • clearFields array of string
    • clearUnpublishAt boolean
    • commitMessage string
    • confirmUnpublish boolean
    • data object
    • expectedEtag string
    • expectedVersion integer

      min 1

    • id string, uuid
    • locale string
    • nullClears boolean
    • op string required

      Allowed: createupdatepublishscheduleunpublisharchivetrash

      Example create

    • scheduledAt string, date-time
    • slug string
    • status string

      Allowed: draftpublishedscheduled

    • unpublishAt string, date-time

Responses

  • 200 Batch operation receipts.

    application/json

    • results array of BatchItemResult required
      Show 7 fields
      • changed boolean
      • error APIError
        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

      • id string, uuid
      • index integer required

        min 0, Example 0

      • op string required

        Example create

      • status string

        Allowed: draftscheduledpublishedarchivedtrashed

      • version integer
  • 401 Unauthenticated — missing or expired session cookie / JWT (API keys are rejected).

    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 Forbidden — insufficient RBAC role capability, CSRF Origin mismatch, post-type restriction, or step-up MFA required.

    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

  • 409 Conflict — optimistic lock mismatch, uniqueness conflict, breaking change confirmation required, or strong references.

    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

  • 422 Validation error with field-level issues.

    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