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

# Update material



## OpenAPI

````yaml put /material/{id}
openapi: 3.0.0
info:
  title: TrueCold API
  version: 1.0.0
  description: API documentation for TrueCold application
servers:
  - url: https://api.truecold.io
    description: Production server
security:
  - apiKeyAuth: []
tags:
  - name: Carriers
    description: Carrier management operations
  - name: Shipments
    description: Shipment tracking and management
  - name: Deliveries
    description: Delivery management operations
  - name: Locations
    description: Location management
  - name: Handling Units
    description: Handling unit operations
  - name: Alerts
    description: Alert system management
  - name: Sensors
    description: Sensor management and monitoring
paths:
  /material/{id}:
    put:
      tags:
        - Materials
      summary: Update material
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
          description: Material ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MaterialInput'
      responses:
        '200':
          description: Successfully updated material
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Material'
        '400':
          description: Invalid input data
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Material not found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKeyAuth: []
components:
  schemas:
    MaterialInput:
      type: object
      description: Material input data for creation/update
      properties:
        material_code:
          type: string
          description: Material code
        material_name:
          type: string
          description: Material name
        allowance:
          type: number
          description: Material allowance
        temperature_range_id:
          type: string
          format: uuid
          description: Temperature range ID of the material
        TOR_bucket_hours:
          type: number
          description: TOR bucket hours
        min:
          type: number
          description: Minimum temperature allowed by the material (ºC)
        max:
          type: number
          description: Maximum temperature allowed by the material (ºC)
      required:
        - material_name
        - material_code
        - temperature_range_id
    Material:
      type: object
      description: Material entity (API response)
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        account_id:
          type: string
          format: uuid
          description: Account ID
        material_code:
          type: string
          description: material code
        material_name:
          type: string
          description: material name
        allowance:
          type: integer
          description: Allowance
        temperature_range_id:
          type: string
          format: uuid
          description: Temperature range ID
        max:
          type: number
          description: Max
        min:
          type: number
          description: Min
        soft_deleted:
          type: string
          format: date-time
          description: Soft deletion timestamp
        soft_deleted_by:
          type: string
          description: User who soft deleted the record
        TOR_bucket_hours:
          type: integer
          description: TOR Bucket Hours
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
          example: An error occurred
        code:
          type: string
          description: Error code
          example: ERROR_CODE
        details:
          type: object
          description: Additional error details (optional)
      required:
        - message
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API key for authentication. Contact your administrator to get an API
        key.

````