---
title: "Archive a routing group"
method: POST
path: "/api/routing-groups/{id}/archive"
tags: ["RoutingGroups"]
---

# Archive a routing group

`POST /api/routing-groups/{id}/archive`

## Request

- Base URL: `https://core-api.getaptly.com`
- URL: `https://core-api.getaptly.com/api/routing-groups/{id}/archive`
- Auth: one of:
  - API key in header `x-token`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/getaptly/apis/aptly-api/docs/api/routing-groups/:id/archive/post.ts> (a function with typed inputs; its response is checked against the schema)

Soft-deletes a routing group. Archived groups are excluded from list results and cannot be updated.

## Path parameters

- `id` string, required

## Response `200`

Routing group archived.

- object
  - `ok` boolean

## Other responses

- `401`: Invalid or missing credential.
- `404`: Routing group not found.

---

[API](https://skmtc.dev/getaptly/apis/aptly-api.md) - [All operations](https://skmtc.dev/getaptly/apis/aptly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/getaptly/apis/aptly-api/revisions/75c367e0b8e5?raw)
