Skip to main content
POST
Copy or move rows into another table

Authorizations

X-API-Key
string
header
required

Path Parameters

table_id
string<uuid>
required

Body

application/json

The body of a copy: its preview's body, and the key that makes one press one copy.

idempotency_key
string
required

A key minted once per copy: a repeat with the same key answers the same copy.

Required string length: 1 - 255
all
boolean
default:false

Copy every row the listing matches. Only honoured without record_ids.

except_record_ids
string<uuid>[] | null

Leave these rows out of a selection of every matching row: the rows unticked after Select all. At most 1000.

Required array length: 1 - 1000 elements
mode
enum<string>
default:copy

copy keeps the rows; move deletes each row here once it is added there. A preview answers the same either way but for the name it suggests for a new table.

Available options:
copy,
move
new_table_name
string | null

The new table's name, when there is no target_table_id. It lists the same kind of rows (people, companies) and sits in the same folder.

Required string length: 1 - 255
record_ids
string<uuid>[] | null

The rows to copy, by record ID, in the order they are added: when the other table fills up, the first ones are copied.

Required array length: 1 - 10000 elements
row_status
enum<string> | null

Narrow an all selection to errored or fully computed rows.

Available options:
errored,
fully_computed
run_column_ids
string<uuid>[]

The other table's run columns (enrichments, AI columns, exports) to run on the rows that are added. Every other one is held back on them, switched on or not. A preview prices every run column the other table has, a row at a time, and what the ones named here cost on the rows that fit.

Maximum array length: 100
skipped_column_ids
string<uuid>[]

Columns of the rows' table to leave out. Every other column is copied.

Maximum array length: 500
sorts
TableRowSortSchema · object[]

The order an all selection is copied in, as the view shows it: when the other table fills up, the rows first in this order are the ones copied. Ticked rows are copied in the order record_ids lists them.

Maximum array length: 3
target_table_id
string<uuid> | null

The table the rows are copied into. Omit, with new_table_name, to make a new table.

where
TableRowsWhereSchema · object | null

Narrow an all selection to rows matching this filter tree.

Response

Successful Response

One copy or move of rows into another table, and how far it got.

copied_rows
integer
required
created_at
string<date-time>
required
error
string | null
required
gone_rows
integer
required

Selected rows deleted before the copy reached them.

id
string<uuid>
required
mode
enum<string>
required

Whether the rows stay in their table (copy) or leave it once they land (move).

Available options:
copy,
move
no_room_rows
integer
required

Rows left out because the other table was full.

rows_done
integer
required

Selected rows handled so far.

source_table_id
string<uuid>
required
status
enum<string>
required

Where a copy job stands: asked, landing its rows, or over.

Available options:
pending,
running,
succeeded,
failed
target_table_id
string<uuid>
required
target_table_name
string
required
total_rows
integer
required

Rows selected; 0 until the copy has read them.

updated_at
string<date-time>
required