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

# Patch Batch Record



## OpenAPI

````yaml /openapi/merchantops-public.json patch /api/catalog/batches/{key}/records/{record_key}
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/catalog/batches/{key}/records/{record_key}:
    patch:
      tags:
        - Catalog
        - Catalog
        - Catalog Batch Records
      summary: Patch Batch Record
      operationId: patch_batch_record
      parameters:
        - in: path
          name: key
          required: true
          schema:
            title: Key
            type: string
        - in: path
          name: record_key
          required: true
          schema:
            title: Record 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
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateRecordRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    UpdateRecordRequest:
      description: |-
        Reviewer-driven per-record approval transition.

        Phase 3 opens this up to ``approved`` and ``pending`` (re-open) so the
        in-app review modal can stamp final state record-by-record. ``reason``
        is required for rejection but optional for the other transitions
        (where it lands on ``approval_note``).
      properties:
        approval_status:
          enum:
            - pending
            - approved
            - rejected
          title: Approval Status
          type: string
        reason:
          anyOf:
            - maxLength: 500
              type: string
            - type: 'null'
          title: Reason
      required:
        - approval_status
      title: UpdateRecordRequest
      type: object
    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

````