# Install a pack

Installs a pack into the workspace: it gets its own EDITABLE copy of every page in the pack it does not already have, together with the workflows that act on those pages — a rule naming the `deals` page is meaningless until that page exists, and asking somebody to install a pack and then find a second button is how a feature ships switched off. `key` is the pack (`finance`; `get_packs` lists them and shows what is in them). Idempotent and by key: a page the workspace already has, edited or archived, is left alone rather than restored, so calling it twice is safe. Answers what it added. A workspace admin's.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/packs/{key}/install`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| key | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {
    ":key": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "added": [
      "string"
    ],
    "pack": "string",
    "workflows": [
      "string"
    ]
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
