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



## OpenAPI

````yaml put /delivery/{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:
  /delivery/{id}:
    put:
      tags:
        - Deliveries
      summary: Update delivery
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
          description: Delivery ID
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeliveryInput'
      responses:
        '200':
          description: Successfully updated delivery
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Delivery'
        '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: Delivery not found
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKeyAuth: []
components:
  schemas:
    DeliveryInput:
      type: object
      description: Delivery input data for creation/update
      properties:
        code:
          type: string
          description: Delivery code
        shipment_id:
          type: string
          format: uuid
          description: Shipment ID (optional)
          nullable: true
        carrier_id:
          type: string
          format: uuid
          description: Carrier ID (optional)
          nullable: true
        receiver_id:
          type: string
          format: uuid
          description: Receiver ID (optional)
          nullable: true
        route_code:
          type: string
          description: Route code (optional)
        route_name:
          type: string
          description: Route name (optional)
        transport_mode:
          type: string
          description: Transport mode (optional)
        started_at:
          type: string
          format: date-time
          description: Start timestamp (optional)
        ended_at:
          type: string
          format: date-time
          description: End timestamp (optional)
        site_id:
          type: string
          format: uuid
          description: Site ID
      required:
        - code
        - site_id
    Delivery:
      type: object
      description: Delivery entity (API response)
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier
        created_at:
          type: string
          format: date-time
          description: Creation timestamp
        code:
          type: string
          description: code code
        shipment_id:
          type: string
          format: uuid
          description: Shipment ID
        receiver_code:
          type: string
          description: receiver code
        receiver_name:
          type: string
          description: receiver name
        carrier_code:
          type: string
          description: carrier code
        carrier_name:
          type: string
          description: carrier name
        route_code:
          type: string
          description: route code
        route_name:
          type: string
          description: route name
        account_id:
          type: string
          format: uuid
          description: Account ID
        site_id:
          type: string
          format: uuid
          description: Site ID
        transport_mode:
          type: string
          description: Transport Mode
        started_at:
          type: string
          format: date-time
          description: started timestamp
        ended_at:
          type: string
          format: date-time
          description: ended timestamp
        soft_deleted:
          type: string
          format: date-time
          description: Soft deletion timestamp
        soft_deleted_by:
          type: string
          description: User who soft deleted the record
        updated_at:
          type: string
          format: date-time
          description: Last update timestamp
        temperature_range_id:
          type: string
          format: uuid
          description: Temperature range ID
        emails_to_notify:
          type: array
          description: Email address
          items:
            type: string
        carrier_id:
          type: string
          format: uuid
          description: Carrier ID
        receiver_id:
          type: string
          format: uuid
          description: Receiver ID
        risk_score:
          type: number
          description: Risk score
          nullable: true
    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.

````