Write
Write records to a table.
Deprecated: use write_data (client.data.write), which writes several tables and raw series in one transaction.
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.
Core tables are writable only if they appear in the write allowlist. Tables that describe the organization itself, such as organizationmember, are read-only and can only be reached through the read tool.
Requires an API key with the write scope.
Authentication
Bearer authentication of the form Bearer <token>, where token is your auth token.
Request
The type of target. Currently ‘table’ or ‘core-table’. Only some core tables are writable. Tables describing the organization, such as organizationmember, are read-only.
Write mode (e.g. ‘create’, ‘create-or-update’).
How a matched record takes the provided columns in create-or-update mode. ‘fill_missing’ only sets columns that are currently null. ‘overwrite’ replaces them, and a provided null clears the column. Columns absent from the record and default functions never overwrite an existing value.
Map of field names to default function names (e.g. ‘DATETIME_NOW’, ‘UUID4’).
Name for the auto-created job. Defaults to ‘Off-Platform Manual Job’.