Tabulky
Aktualizovat tabulku
Aktualizace názvu, kontextu obohacení nebo schématu existující tabulky.
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"
}
Parametry cesty
string
povinné
Jedinečný identifikátor tabulky.
Tělo požadavku
Všechna pole jsou volitelná. Aktualizují se pouze zadaná pole.string
Nový název tabulky.
string
Aktualizovaný kontext pro operace AI obohacení.
string
Přiřazení jiného schématu k tabulce. Schéma musí patřit vaší společnosti.
Odpověď
Vrací úplný aktualizovaný objekt tabulky (stejný tvar jako Získat tabulku).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"
}

