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

# Update order materials

> Partial update — send only the fields to change. `PUT` is also accepted with identical merge semantics for backward compatibility.




## OpenAPI

````yaml /openapi-public.yml patch /api/v1/products/order_material/{product_id}
openapi: 3.0.3
info:
  title: Blend API
  version: 1.0.0
  description: API for Blend
servers:
  - url: https://api.byblend.com
    description: Blend production server
security:
  - bearerAuth: []
tags:
  - name: Orders
    description: Order management endpoints
  - name: Patients
    description: Patient management endpoints
  - name: Reports
    description: Reporting endpoints
  - name: Products and Materials
    description: Product catalog and inventory endpoints
  - name: Electronic Prescriptions
    description: Electronic prescription management endpoints
  - name: Prescriptions
    description: Prescription management endpoints
  - name: Authentication
    description: Authentication endpoints
  - name: Notifications
    description: User management endpoints
  - name: Prescribers
paths:
  /api/v1/products/order_material/{product_id}:
    patch:
      tags:
        - Products and Materials
      summary: Update order materials
      description: >
        Partial update — send only the fields to change. `PUT` is also accepted
        with identical merge semantics for backward compatibility.
      parameters:
        - name: product_id
          in: path
          required: true
          description: Unique (UUID) identifier for the order materials
          schema:
            type: string
            format: uuid
            example: 98cae3a3-996c-4bf5-9143-0ab6d98bc1d0
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OrderMaterialProductEdit'
      responses:
        '200':
          description: Prescription product updated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProductOrderMaterialFull'
components:
  schemas:
    OrderMaterialProductEdit:
      type: object
      properties:
        name:
          type: string
          example: December advertising postcard
          description: Name of the order material
        sku:
          type: string
          example: DEC_AD_001
          description: External SKU of the product; can be referenced in orders
        description:
          type: string
          example: Features two for one sunscreens.
          description: Description of the product
    ProductOrderMaterialFull:
      allOf:
        - $ref: '#/components/schemas/ProductBase'
        - $ref: '#/components/schemas/ProductOrderMaterial'
    ProductBase:
      allOf:
        - $ref: '#/components/schemas/ID'
        - $ref: '#/components/schemas/Timestamps'
        - type: object
          properties:
            sku:
              type: string
              example: '1234567890'
              description: Unique inventory identifier for the product
    ProductOrderMaterial:
      type: object
      properties:
        name:
          type: string
          example: Referral Brochure
        description:
          type: string
          example: Customer brochure included in every shipment.
        category:
          type: string
          example: marketing
        current_stock:
          type: integer
          example: 927
        reorder_threshold:
          type: integer
          example: 100
        has_inventory:
          type: boolean
          example: true
          description: Whether the product has any inventory associated with it
        is_global:
          type: boolean
          example: false
          description: >-
            Whether the material is customer-specific or Blend-wide (e.g.
            regulatory inserts)
    ID:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier
          example: 0227d1e5-ba9a-42b5-8fe2-38882aa65708
    Timestamps:
      type: object
      properties:
        created_at:
          type: string
          format: date-time
          description: Date and time of creation
          example: '2025-03-15T12:00:00Z'
        updated_at:
          type: string
          format: date-time
          description: Date and time of last update
          example: '2025-03-15T12:00:00Z'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````