Labric Write Api
Write records to a table.
Inserts or updates records in the specified target table. Supports batch inserts, upserts with match columns, default value functions (DATETIME_NOW, UUID4), and optional dry-run validation. A job execution is created automatically if one is not provided.
Body Parameters
List of record dicts to write.
Write mode (e.g. 'create', 'create-or-update').
The name of the table to write to.
If True, allow batch insert of multiple records.
If True, return the written records in the response.
Map of field names to default function names (e.g. 'DATETIME_NOW', 'UUID4').
If True, resolve references, check table and column validity, and return the execution plan without committing changes.
Existing job execution ID to associate with this write. If omitted, a new one is created.
Name for the auto-created job. Defaults to 'Off-Platform Manual Job'.
Column names to match on when updating existing records.
Labric Write Api
curl https://platform.labric.co//api/v1/tools/write \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $LABRIC_API_KEY" \
-d '{
"data": [
{
"foo": "bar"
}
],
"mode": "mode",
"target_name": "target_name",
"target_type": "table"
}'
[
{
"foo": "bar"
}
]
Returns Examples
[
{
"foo": "bar"
}
]