Bulk Table Operations
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/bulk
This endpoint enables bulk operations on a given table. For now, we only allow bulk inserting. An example bulk request looks like this: ```json // POST https://tutorial-ng7s8c.xata.sh/db/tutorial:main/tables/users/bulk { "records": [ { "email": "laurence@example.com", "full_name": "Laurence Fishburne", "team": "rec_c8hng2h26un90p8sr7k0" }, { "email": "hugo@example.com", "full_name": "Hugo Weaving", "team": "rec_c8hng2h26un90p8sr7k0" }, { "email": "joe@example.com", "full_name": "Joe Pantoliano", "team": "rec_c8hng2h26un90p8sr7k0" } ] } ``` For more details, see the documentation on [inserting records in bulk](/docs/sdk/transaction#inserts).
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern `{db_name}:{branch_name}`. | path | ✅ | string |
table_name | The Table name | path | ✅ | string |
columns | Column filters | query | - | array |
Bulk Insert Records
POSThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/tables/table_name/bulk
Bulk insert records