---
title: "Update package"
method: PUT
path: "/api/v1/external/shipments/{shipmentId}/packages/{packageId}"
tags: ["Shipments"]
---

# Update package

`PUT /api/v1/external/shipments/{shipmentId}/packages/{packageId}`

## Request

- Base URL: `https://api.wove.com`
- URL: `https://api.wove.com/api/v1/external/shipments/{shipmentId}/packages/{packageId}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/wove/apis/wove-external-api/docs/api/v1/external/shipments/:shipmentId/packages/:packageId/put.ts> (a function with typed inputs; its response is checked against the schema)

Update an existing package's details.

## Path parameters

- `shipmentId` string, required
- `packageId` string, required

## Request body

- UpdatePackageRequest
  - `packageNumber` string
  - `packageType` string
  - `description` string
  - `packageCount` integer
  - `lineNumber` integer
  - `grossWeight` number
  - `netWeight` number
  - `volume` number
  - `weightUnit` string
  - `volumeUnit` string

## Response `200`

Package updated successfully

- object
  - `success` boolean
  - `data` ShipmentPackage
    - `id` string
    - `containerId` string, nullable: ID of the container this package belongs to (null for loose packages)
    - `packageNumber` string
    - `packageType` string
    - `description` string, nullable
    - `packageCount` integer
    - `lineNumber` integer, nullable
    - `grossWeight` number, nullable
    - `netWeight` number, nullable
    - `volume` number, nullable
    - `weightUnit` string, nullable
    - `volumeUnit` string, nullable
    - `items` ShipmentItem[]: Items contained in this package
      - `id` string
      - `lineNumber` integer
      - `sku` string
      - `partNumber` string
      - `description` string
      - `quantity` number
      - `unitOfMeasure` string
      - `unitPrice` number
      - `amount` number
      - `currency` string
      - `countryOfOrigin` string
      - `hsCode` string
      - `weight` number
      - `weightUnit` string
      - `volume` number
      - `volumeUnit` string
      - `packageNumber` string
      - `dimensions` object
        - `length` number
        - `width` number
        - `height` number
        - `unit` string
  - `message` string

## Other responses

- `400`: Invalid request data
- `404`: Package or shipment not found

---

[API](https://skmtc.dev/wove/apis/wove-external-api.md) - [All operations](https://skmtc.dev/wove/apis/wove-external-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wove/apis/wove-external-api/revisions/37290e267e07?raw)
