# Withdraw a Policy Set

A draft, or a set awaiting its quorum, → `archived`.

## Overview

- The active set is not withdrawn this way: publish the version that replaces it (`409` `POLICY_SET_ACTIVE`). An archived set answers `409` `POLICY_SET_ARCHIVED`.
- `200` with the set: `archivedAt` and `archivedBy`.

## Endpoint

### `POST /v1/policy-sets/{setId}/archive`

Authentication: bearer token required.

Withdraws a draft or a set awaiting its quorum. No body.

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `setId` | string | yes | The set's id |

**Responses**

`409` Active

```json
{
  "statusCode": 409,
  "error": "ConflictError",
  "message": "The active policy set is archived only when another version is published in its place",
  "details": { "code": "POLICY_SET_ACTIVE", "status": "active" }
}
```

---

Web version: https://docs.aureahub.com/#policy-set-archive
