1. Containers
  2. Add Deliveries to Container

Containers

Add Deliveries to Container

POST
`/v1/containers/:container`

To update the deliveries in a container, send the deliveries that you want to add as an array and the new deliveries will be appended to the list of existing deliveries in this container.

js
        const data = {
  add: ["ship_82A6o62SfaFeLRctFCMBrt"]
};

fetch(`https://api.packagex.io/v1/containers/${container_id}`, {
  method: "POST",
  headers: {
    "PX-API-KEY": process.env.PX_API_KEY,
    "Content-Type": "application/json"
  },
  body: JSON.stringify(data)
}).then((res) => res.json());

const container = res.data;