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

# Set Review Preferences

> Upsert the review-modal field configuration for a ProductType.

Use ``product_type_key='__default__'`` to set the org-wide default
that applies to every type without its own override.



## OpenAPI

````yaml /openapi/merchantops-public.json put /api/catalog/review-preferences/{product_type_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/review-preferences/{product_type_key}:
    put:
      tags:
        - Catalog
        - Catalog
        - Catalog Review Preferences
      summary: Set Review Preferences
      description: |-
        Upsert the review-modal field configuration for a ProductType.

        Use ``product_type_key='__default__'`` to set the org-wide default
        that applies to every type without its own override.
      operationId: set_review_preferences
      parameters:
        - in: path
          name: product_type_key
          required: true
          schema:
            title: Product Type 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/SetReviewPreferencesRequest'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReviewPreferencesResponse'
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    SetReviewPreferencesRequest:
      properties:
        visible_property_keys:
          items:
            type: string
          maxItems: 500
          title: Visible Property Keys
          type: array
      required:
        - visible_property_keys
      title: SetReviewPreferencesRequest
      type: object
    ReviewPreferencesResponse:
      description: |-
        Resolved review-field config for a ProductType.

        ``is_default`` is True when no type-specific override exists and the
        response came from the org-wide ``__default__`` fallback (which itself
        may be empty if the org hasn't configured a default yet).
      properties:
        is_default:
          default: false
          title: Is Default
          type: boolean
        product_type_key:
          title: Product Type Key
          type: string
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        updated_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated By
        visible_property_keys:
          items:
            type: string
          title: Visible Property Keys
          type: array
      required:
        - product_type_key
      title: ReviewPreferencesResponse
      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

````