---
title: "Restore a batch of archived tasks and their parent hierarchy"
method: PATCH
path: "/v3/task-archive/restore-batch"
tags: ["[v3] Task Archive"]
---

# Restore a batch of archived tasks and their parent hierarchy

`PATCH /v3/task-archive/restore-batch`

Restores a batch of archived tasks. When restoring tasks, their parent tasks (if archived) will also be restored to maintain task tree consistency. However, siblings of restored tasks will remain archived unless explicitly included in the batch. This endpoint ensures that the recalculation of the task tree hierarchy is performed once per batch, preventing inconsistencies and race conditions that may occur if multiple single-task restore requests are made concurrently.

## Request body

- object
  - `taskIds` integer[], required — List of archived task IDs to restore.

## Response `200`

OK

- object
  - `message` string

## Other responses

- `403` — The authenticated OAuth2 access token or PAT does not contain any scope accepted by the endpoint.

---

[API](https://skmtc.net/timecamp/apis/timecamp-api.md) · [All operations](https://skmtc.net/timecamp/apis/timecamp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timecamp/timecamp-api/revisions/c7e9d1f9cf61/schema)
