---
title: "Archive containers"
method: POST
path: "/containers:archive"
tags: ["containers"]
---

# Archive containers

`POST /containers:archive`

## Request

- Base URL: `https://{tenant_name}.benchling.com/api/v2`
- URL: `https://{tenant_name}.benchling.com/api/v2/containers:archive`
- Auth: HTTP bearer

Archive containers

## Request body

- ContainersArchive
  - `containerIds` string[], required: Array of container IDs
  - `reason` 'Made in error' | 'Retired' | 'Expended' | 'Shipped' | 'Contaminated' | 'Expired' | 'Missing' | 'Other', required: Reason that containers are being archived.
  - `shouldRemoveBarcodes` boolean: Remove barcodes. Removing barcodes from archived inventory that contain items will also remove barcodes from the contained items.

## Response `200`

OK

- ContainersArchivalChange: IDs of all items that were unarchived, grouped by resource type. This includes the IDs of containers that were unarchived.
  - `containerIds` string[]

## Other responses

- `400`: Bad Request
- `403`: Forbidden

---

[API](https://skmtc.dev/benchling/apis/benchling-api-2.md) - [All operations](https://skmtc.dev/benchling/apis/benchling-api-2/llms.txt) - [OpenAPI document](https://skmtc.dev/benchling/apis/benchling-api-2/revisions/01d2fa8523cd?raw)
