---
title: "Archive Assay Runs"
method: POST
path: "/assay-runs:archive"
tags: ["assayRuns"]
---

# Archive Assay Runs

`POST /assay-runs:archive`

## Request

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

Archive assay runs that are not embedded in a notebook entry

## Request body

- AssayRunsArchive: The request body for archiving Assay Runs.
  - `assayRunIds` string[], required
  - `reason` 'Archived' | 'Made in error' | 'Other', required: The reason for archiving the provided Assay Runs. Accepted reasons may differ based on tenant configuration.

## Response `200`

OK

- AssayRunsArchivalChange: IDs of all Assay Runs that were archived / unarchived.
  - `assayRunIds` string[]

## Other responses

- `400`: Bad Request

---

[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)
