---
title: "Archives client"
method: POST
path: "/workspaces/{workspace_id}/clients/{client_id}/archive"
tags: ["clients"]
---

# Archives client

`POST /workspaces/{workspace_id}/clients/{client_id}/archive`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/clients/{client_id}/archive`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/clients/:client_id/archive/post.ts> (a function with typed inputs; its response is checked against the schema)

Archives a workspace client and related projects. Only for premium workspaces.

## Path parameters

- `workspace_id` integer, required
- `client_id` integer, required

## Response `200`

Projects that were archived with the client

- integer[]

## Other responses

- `403`: Forbidden
- `404`: No client with ID {client_id} was found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
