Update Sources
Sources
Update Sources
Batch toggle datasources and update per-source config.
PATCH
Update Sources
CLI:
Overview
Batch upsert the caller’s per-source enable state and adapter config. Togglingenabled=false cascades to every signal type that uses that source until it is re-enabled.
Use this when a user connects, disconnects, or reconfigures a datasource — for example, switching the LinkedIn Posts adapter to a different keyword list or pausing Reddit entirely.
AI agent notes
Cascade. Disabling a source disables it on every signal type. Re-enabling restores the prior state — the cascade is symmetric.Config shape. The
config JSONB must match the adapter’s configSchema (see Get Sources). Adapters validate at scan time, so a bad config silently drops the next scan rather than failing the PATCH.Defaults. Creating a per-user row implicitly sets enabled: true.Batch shape. Returns updated (ids that succeeded) and errors (per-id failures).