Skip to main content
PATCH
/
v1
/
tables
/
{table_id}
const updated = await client.tables.update("tbl_abc123", {
  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

table_id
string
required
The unique identifier of the table.

Request body

All fields are optional. Only provided fields are updated.
name
string
New name for the table.
enhancement_context
string
Updated context for AI enhancement operations.
schema_id
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",
});
{
  "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"
}