docs: clarify host-linked activity preservation in activity_expiry_settings (#42811)

Resolves #40692

The `activity_expiry_enabled` description implied all activities older
than the configured window are deleted. In reality, activities linked to
a host (via `host_activities`) are exempt and persist until the host is
deleted.

## Changes

- **`docs/REST API/rest-api.md`**: Appended clarification to
`activity_expiry_enabled` description: _"Activities linked to a host are
preserved until the host is deleted."_

# Checklist for submitter

If some of the following don't apply, delete the relevant line.

- [ ] Changes file added for user-visible changes in `changes/`,
`orbit/changes/` or `ee/fleetd-chrome/changes`.
See [Changes
files](https://github.com/fleetdm/fleet/blob/main/docs/Contributing/guides/committing-changes.md#changes-files)
for more information.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: getvictor <2685025+getvictor@users.noreply.github.com>
This commit is contained in:
Copilot
2026-04-03 16:31:26 -05:00
committed by GitHub
co-authored by getvictor
parent d7b6b3c018
commit b29f7bc823
+1 -1
View File
@@ -2152,7 +2152,7 @@ Modifies the Fleet's configuration with the supplied information.
| Name | Type | Description |
| --------------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------- |
| activity_expiry_enabled | boolean | When enabled, allows automatic cleanup of activities (and associated live query data) older than the specified number of days. |
| activity_expiry_enabled | boolean | When enabled, allows automatic cleanup of activities (and associated live query data) older than the specified number of days. Activities linked to a host are preserved until the host is deleted. |
| activity_expiry_window | integer | The number of days to retain activity records, if activity expiry is enabled. |
<br/>