Skip to content
SHAMPOO

Tool catalogue

import

Read · Ordinary · Tasks and notes

import

  • Category: tasks
  • Access: read
  • Audience: ordinary (an ordinary user normally calls this directly)

Purpose

Import a pocket-export-v1 envelope idempotently (one transaction).

Arguments

Required: envelope.

  • envelope. Note: Envelope JSON string (required).

Result

JSON object with per-table imported/skipped counts.

Boundaries

Project-scoped reads; foreign projects read empty. Import writes only in-scope rows, skipping others with counts.

Lifecycle / side effects

Read-only feed/export. Import merges idempotently in one transaction.

Errors

Bad types/anchors/envelopes rejected. Failures move nothing (atomic).

Example

{
  "envelope": "{...}"
}

Result shape:

{
  "imported": {}
}

See also

export, changes_since.

On this page