# Archive a record

Takes one record off the live board and keeps it: its cells, its timeline, its files and its documents all stay, and `POST .../reactivate` puts it back in the position it left from. Reach for this, not `rows/delete`, whenever a deal or lead is finished with rather than a mistake — the delete destroys the record's whole trail. Already-archived is not found.

Access class: `def:read`.

## Endpoint

`POST /v1/definitions/{key}/rows/{rowId}/archive`

## Parameters

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

## Request body

Content type: `application/json`.

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

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "archived_at": "string",
    "cells": {
      "<uuid-2>": "string",
      "<uuid-4>": "string"
    },
    "id": "",
    "position": 1.5,
    "source": "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"
}
```
