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

# Reset Price Batch Publishing

> Unstick a batch wedged in ``publishing_status='publishing'``.

Force-finalizes it to partial/failed so it can be re-driven (publish-now),
without manual DB intervention. The pricing analog of the catalog reset
endpoint — needed most by poll-delivery targets, where a batch whose
records were outcome-stamped without counted markers (pre-fix
/publish-outcome) is beyond both ``finalize_publish_if_done`` and the
reconcile sweep. Returns 409 if the batch is not publishing (nothing to
reset) or has been publishing too recently (a live publish must not be
interrupted).



## OpenAPI

````yaml /openapi/merchantops-public.json post /api/pricing/batches/{key}/reset-publishing
openapi: 3.1.0
info:
  description: >-
    Public API for the MerchantOps product catalog, pricing, and publishing
    surface.
  title: MerchantOps API
  version: 1.0.0
servers:
  - description: Production
    url: https://api.merchantops.ai
security: []
paths:
  /api/pricing/batches/{key}/reset-publishing:
    post:
      tags:
        - Pricing
        - Pricing
        - Price Batches
      summary: Reset Price Batch Publishing
      description: >-
        Unstick a batch wedged in ``publishing_status='publishing'``.


        Force-finalizes it to partial/failed so it can be re-driven
        (publish-now),

        without manual DB intervention. The pricing analog of the catalog reset

        endpoint — needed most by poll-delivery targets, where a batch whose

        records were outcome-stamped without counted markers (pre-fix

        /publish-outcome) is beyond both ``finalize_publish_if_done`` and the

        reconcile sweep. Returns 409 if the batch is not publishing (nothing to

        reset) or has been publishing too recently (a live publish must not be

        interrupted).
      operationId: reset_price_batch_publishing
      parameters:
        - in: path
          name: key
          required: true
          schema:
            title: Key
            type: string
        - in: header
          name: authorization
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
        - in: header
          name: X-Organization-ID
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: X-Organization-Id
        - in: cookie
          name: stytch_session
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Stytch Session
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````