---
title: "Archive all tickets in a lane"
url: https://docs.gleap.ai/en/reference/rest-api/archive-all-tickets
method: PUT
path: "/tickets/archive/all"
api: "API Reference"
tag: "Ticket"
operationId: "ArchiveAllTickets"
updatedAt: "2026-11-01T18:40:15.677Z"
language: en
---

# Archive all tickets in a lane

`PUT https://api.gleap.io/v3/tickets/archive/all`

Archives every non-archived ticket of the given `type` and `status` (both required in the body). Pass the board's active `filter` (the same JSON string GET /tickets takes) to archive only the filtered subset — omit it to archive the whole lane. Processes at most 1000 tickets per call; repeat the call to drain larger lanes. Returns `true`.

## Authorization

- `Authorization` (header, required): `Bearer <token>`

## Headers

- `project` (string, required)

## Request body (`application/json`, required)

- `filter` (string)
- `type` (string, required)
- `status` (string, required)

## Example request

```bash
curl --request PUT \
  --url https://api.gleap.io/v3/tickets/archive/all \
  --header 'Authorization: Bearer <token>' \
  --header 'project: <project>' \
  --header 'Content-Type: application/json' \
  --data '{
  "type": "<type>",
  "status": "<status>"
}'
```

## Responses

### 200 (`application/json`)

Ok
