Tables
Update table
Update the name, enhancement context, or schema of an existing table.
PATCH
/
v1
/
tables
/
{table_id}
const updated = await client.tables.update("tbl_abc123", {
name: "Updated Catalog Name",
enhancement_context: "Focus on technical specifications",
});
updated = client.tables.update(
"tbl_abc123",
name="Updated Catalog Name",
enhancement_context="Focus on technical specifications",
)
curl -X PATCH "https://hub.banditshq.com/api/v1/tables/tbl_abc123" \
-H "Authorization: Bearer lasso_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Catalog Name",
"enhancement_context": "Focus on technical specifications"
}'
{
"id": "tbl_abc123",
"name": "Q1 Product Catalog",
"schema_id": "schema_xyz789",
"status": "completed",
"progress": 100,
"total_rows": 42,
"source_type": "files",
"additional_context": null,
"enhancement_context": "Focus on technical specifications",
"error_message": null,
"files": [
{ "name": "catalog.pdf", "path": "company_123/file_xyz/catalog.pdf", "size": 1048576 }
],
"created_at": "2025-03-10T14:30:00.000Z",
"updated_at": "2025-03-10T15:45:00.000Z"
}
Path parameters
string
required
The unique identifier of the table.
Request body
All fields are optional. Only provided fields are updated.string
New name for the table.
string
Updated context for AI enhancement operations.
string
Assign a different schema to the table. The schema must belong to your company.
Response
Returns the full updated table object (same shape as Get table).const updated = await client.tables.update("tbl_abc123", {
name: "Updated Catalog Name",
enhancement_context: "Focus on technical specifications",
});
updated = client.tables.update(
"tbl_abc123",
name="Updated Catalog Name",
enhancement_context="Focus on technical specifications",
)
curl -X PATCH "https://hub.banditshq.com/api/v1/tables/tbl_abc123" \
-H "Authorization: Bearer lasso_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Catalog Name",
"enhancement_context": "Focus on technical specifications"
}'
{
"id": "tbl_abc123",
"name": "Q1 Product Catalog",
"schema_id": "schema_xyz789",
"status": "completed",
"progress": 100,
"total_rows": 42,
"source_type": "files",
"additional_context": null,
"enhancement_context": "Focus on technical specifications",
"error_message": null,
"files": [
{ "name": "catalog.pdf", "path": "company_123/file_xyz/catalog.pdf", "size": 1048576 }
],
"created_at": "2025-03-10T14:30:00.000Z",
"updated_at": "2025-03-10T15:45:00.000Z"
}
⌘I
const updated = await client.tables.update("tbl_abc123", {
name: "Updated Catalog Name",
enhancement_context: "Focus on technical specifications",
});
updated = client.tables.update(
"tbl_abc123",
name="Updated Catalog Name",
enhancement_context="Focus on technical specifications",
)
curl -X PATCH "https://hub.banditshq.com/api/v1/tables/tbl_abc123" \
-H "Authorization: Bearer lasso_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Updated Catalog Name",
"enhancement_context": "Focus on technical specifications"
}'
{
"id": "tbl_abc123",
"name": "Q1 Product Catalog",
"schema_id": "schema_xyz789",
"status": "completed",
"progress": 100,
"total_rows": 42,
"source_type": "files",
"additional_context": null,
"enhancement_context": "Focus on technical specifications",
"error_message": null,
"files": [
{ "name": "catalog.pdf", "path": "company_123/file_xyz/catalog.pdf", "size": 1048576 }
],
"created_at": "2025-03-10T14:30:00.000Z",
"updated_at": "2025-03-10T15:45:00.000Z"
}

