---
title: "Bulk archive/unarchive sessions"
method: POST
path: "/sessions/archive"
tags: ["Sessions"]
---

# Bulk archive/unarchive sessions

`POST /sessions/archive`

Archive or unarchive multiple sessions in a single operation

## Request body

- BulkArchiveRequest
  - `session_ids` string[], required — Sessions to archive/unarchive
  - `archived` boolean, required — True to archive, false to unarchive

## Response `200`

Bulk operation completed

- BulkArchiveResponse
  - `data` object, required
    - `success` boolean, required
    - `failed_sessions` string[] — Sessions that failed to update

## Other responses

- `207` — Partial success
- `400` — Bad request
- `500` — Internal server error

---

[API](https://skmtc.net/humanlayer/apis/humanlayer-daemon-rest-api.md) · [All operations](https://skmtc.net/humanlayer/apis/humanlayer-daemon-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/humanlayer/humanlayer-daemon-rest-api/versions/02da8cb8aa12/schema)
