upsertTableRows
Inserts or updates rows based on a key. If a row exists, it is updated; otherwise, a new row is created.
POST
/v1/tables/{table}/rows/upsertAuthorization
AuthorizationBearerrequiredBearer authentication header of the form Bearer <token>, where <token> is your auth token.
Header parameters
x-bot-idstringrequiredBot id
x-integration-idstringIntegration id
x-integration-aliasstringIntegration alias
x-integration-namestringIntegration name
x-user-idstringUser Id
x-user-rolestringUser Role
Path parameters
tablestringrequiredThe table's name or unique identifier for targeting specific table operations.
Request body
Rows for insertion or update, with a key column to determine action. Supports partial successes.
rowsobject[]requiredkeyColumnstringdefault: "id"Determines if a row is inserted or updated. Defaults to "id".(min length: 1, max length: 30)
waitComputedbooleanEnsure computed columns are fully processed before returning the result. This is applicable only when the number of rows involved is fewer than 1.
Response
application/jsonSummary of insertions and updates, including any warnings or errors.
The response is of type upsertTableRowsResponse · object.
insertedobject[]requiredupdatedobject[]requiredwarningsstring[]Alerts for minor issues that don't block the operation but suggest possible improvements.
errorsstring[]Critical issues in specific elements that prevent their successful processing, allowing partial operation success.