# Document Archive Settings

`GET` _(Table: EONE Doc Archive Setup)_

```
eOne/core/v1.0/documentArchiveSettings
```

Read and write whether the archive and cancel actions (and their API bound-actions) are available for each document type, one row per archivable type. Built primarily for automated testing.

## One row per archivable document type

Rows are seeded by the extension; you cannot insert or delete, only PATCH `enabled`. `documentType` is the key.

```
PATCH /documentArchiveSettings(<id>)
{ "enabled": true }
```

## Document Archive Settings fields

_API column → BC field._

**Legend**

- _(req)_ required on create
- _(res)_ resolver
- _(cur)_ currency-translated
- _(ro)_ read-only
- _(ext)_ added to this endpoint by another extension (BC field name shown; its API column name is not known here)

| API | BC field | Notes |
| --- | --- | --- |
| `id` | SystemId | BC record GUID. _(ro)_ |
| `bcCompanyId` | bcCompanyId | The company this row belongs to - the same GUID that appears in the request URL. Present on every endpoint so a store pooling several companies can keep them apart without relying on which URL it called. _(ro)_ |
| `bcCompanyName` | bcCompanyName | The name of the company this row belongs to. _(ro)_ |
| `documentType` | Document Type | The document type this archive/cancel setting applies to. _(ro)_ |
| `enabled` | Enabled | Whether archive and cancel are available for this document type. |
| `lastModifiedDateTime` | SystemModifiedAt | _(ro)_ |
