---
title: "Archive or restore a path"
method: PUT
path: "/api/v2/paths/{pathId}/archive"
tags: ["Paths"]
---

# Archive or restore a path

`PUT /api/v2/paths/{pathId}/archive`

> 🔑
>
> Required OAuth scope: `paths:write`.

Archives or restores a path.

## Path parameters

- `pathId` string, ObjectId, required

## Headers

- `360-api-version` 'v2.0', required

## Request body

- ArchivePathBody
  - `archived` boolean, required — If true, archives the path. If false, restores the path.

## Response `200`

Returns the updated path.

## Other responses

- `400` — The given path has running sessions.
- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The given `pathId` does not correspond to any existing path.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.dev/360learning/apis/core-api.md) · [All operations](https://skmtc.dev/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/360learning/core-api/revisions/94b691b0b72c/schema)
