Skip to main content
PATCH
Update this org's Customer Voice retention settings

Authorizations

Authorization
string
header
required

Supabase JWT token in Authorization: Bearer header

Path Parameters

org_id
string
required

Organization identifier (e.g. org-abc12345)

Body

application/json
retention_days
integer | null
required

Retention window in days, or null to retain indefinitely.

Required range: 1 <= x <= 3650

Response

The updated Customer Voice retention settings.

Aletheia Customer Voice retention configuration for an org (MNE-2407, feedback_retention_settings). retention_days is a caller-configured retention window (1-3650) or null to retain indefinitely (the default for an org with no configured row yet). enforcement_active is ALWAYS false today — this build ships configuration + storage + audit only; no cron yet reads retention_days to auto-erase aged submissions (tracked follow-up, MNE-440/MNE-443). Returned by both GET and PATCH .../customer-voice/settings.

org_id
string
required

Organization identifier (e.g. org-abc12345).

retention_days
integer | null
required

Retention window in days, or null to retain indefinitely.

Required range: 1 <= x <= 3650
enforcement_active
boolean
required

Always false today (honest-voice, MNE-440/MNE-443): retention configuration is stored and audited but not yet enforced by any deletion cron.

updated_by
string | null

User id that last wrote this setting, or null if never set.

updated_at
string<date-time> | null

When this setting was last written, or null if never set.