Skip to main content
POST
Selector-based writes with dry-run preview

Authorizations

Authorization
string
header
required

Clerk OAuth 2.0 Authorization Code flow with PKCE. Request the minimum scope required by the operation.

Body

application/json
op
required

sources.* use where.source or where.collection, never entry filters. entries.* use the full where predicate. collections.rename/delete select one where.collection; collections.create uses set.name.

Allowed value: "sources.unfollow"
where
object

Entry selection predicate: fields AND together; omit a field to not filter on it. Source queries/mutations accept only collection and source; use query having for source-health filters.

set
object
dry_run
boolean

Default true: preview affected records and return a commit_token. Explicit false applies immediately; prefer preview then commit_token for agent workflows.

commit_token
string

From a dry run. Single-use and idempotent: resending after a network failure replays the recorded outcome.

Maximum string length: 100

Response

Selector-based writes with dry-run preview. The operation succeeded.

Selector-based writes with dry-run preview. The operation succeeded.

object
string
required
Allowed value: "feed_mutation_preview"
op
string
required
would_affect
integer
required
sample
string[]
required
commit_token
string
required
expires_in_seconds
integer
required
Last modified on September 13, 2026