erdo datasets write appends or updates rows in an existing writable dataset.
The examples below use an ordinary file dataset. Pass --org and --project
when you need to select the workspace and project explicitly.
A populated canonical lead dataset refuses generic row writes. Use its capture
pipeline or the supported lead identity operations.
Append rows
Pass a JSON array inline or load it from a file with@:
map[plan:pro]. If a file
dataset column needs JSON that can be parsed later, supply an encoded JSON
string, such as "meta": "{\"plan\":\"pro\"}". An empty array is a
successful zero-row no-op.
Replace matching rows
Add a key column to upsert by that value:--key-column and --write-mode to append. With a key, new keys insert
and matching keys update. File datasets replace the matching row, clearing fields
omitted from the incoming row. PostgreSQL tables update the non-key columns
present in the batch. Columns absent from every row stay unchanged; omitting a
column supplied by another row writes NULL for that cell. --write-mode replace selects this default
explicitly and requires a non-blank --key-column, just like merge mode. A
supplied key must name at least one non-blank column, even when the write mode
is omitted. A comma-separated value supplies a composite key:
--key-column is supplied with the default or explicit
--write-mode replace; they do not update the matching row.
Merge matching rows
Merge mode requires a non-blank key. It fills blank fields and preserves existing non-blank values:--overwrite-columns when selected non-blank incoming values should also
replace existing values:
--overwrite-columns is valid only with merge mode and cannot contain empty
column names. The server also refuses attempts to overwrite a key column.
Storage support varies: file datasets and writable PostgreSQL tables support
merge; ClickHouse-backed datasets refuse merge mode.
Response and errors
The command prints the server’s JSON count response:Delete rows
Delete the rows whose key column matches the keys you name:--keys takes a JSON array or one key per line, inline or from @path. Nothing
is deleted without --yes. --all deletes every row instead, and cannot be
combined with --key-column or --keys. Long key lists are sent in batches of
100, and the command prints the total rows_affected with the number of keys
requested. The same operation is the erdo_delete_dataset_rows MCP tool and
DELETE /v1/datasets/{slug}/rows?key_column=...&keys=....
A delete needs edit access and is permanent: the rows also leave the dataset’s
change history, so datasets restore-row cannot bring them back. Fetch the rows
first if you may want to write them back.
Repair dataset user access
An organization operator can inspect and repair explicit dataset user grants without bypassing RBAC:user_id
and level; they do not expose email addresses. Removal verifies that the
direct grant is absent on readback; it does not assert that all effective access was revoked. A user may still have access through an
organization or another inherited grant after a direct grant is removed.
