> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sequenzy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Public Archive

> Turn your public newsletter archive on or off

Turn your public newsletter archive on or off. When enabled, the archive lists
your published sent issues at `https://sequenzy.com/lp/archive/{companyId}`, newest
first, 10 per page with `?page=`. Each issue lives at
`https://sequenzy.com/lp/archive/{companyId}/{postSlug}`, renders like a
[share link](https://docs.sequenzy.com/api-reference/campaigns/share-link-create.md) (sample contact, no
tracking) without the automatic unsubscribe footer, and carries Open Graph and
Twitter card tags for link previews. Archive pages and the RSS feed at
`{url}/rss.xml` send `X-Robots-Tag: noindex`.

* **Enabling** makes your archive and published sent issues accessible at your workspace archive URL.
* **Disabling** makes every archive page return 404 while keeping each campaign's published state, so turning the archive back on restores the same URLs.

Archive pages are cached by a CDN for up to 60 seconds, so a change can take
that long to show on the public pages.

Requires the `companies:manage` scope and owner or admin access.

## Request

```bash theme={null}
curl -X PATCH "https://api.sequenzy.com/api/v1/public-archive" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "enabled": true }'
```

## Body

**enabled** `boolean` *required*

`true` turns the archive on, `false` turns it off.

## Response fields

**publicArchive** `object`

The saved settings, with `enabled`, `url` and `rssUrl`. Same shape as
[Get Public Archive](https://docs.sequenzy.com/api-reference/public-archive/get.md).

```json 200 theme={null}
{
  "success": true,
  "publicArchive": {
    "enabled": true,
    "url": "https://sequenzy.com/lp/archive/comp_abc123",
    "rssUrl": "https://sequenzy.com/lp/archive/comp_abc123/rss.xml"
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": "enabled must be a boolean."
}
```

```json 401 theme={null}
{
  "success": false,
  "error": "Unauthorized"
}
```

```json 403 theme={null}
{
  "success": false,
  "error": "You have view-only access to this company. Contact the owner to request edit permissions."
}
```

A `400` is returned when `enabled` is missing or not a boolean. Nothing is
saved, so fix the value and retry.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.