---
title: "Update Table"
method: PATCH
path: "/workspaces/{workspace_id}/tables/{table_id}"
tags: ["tables"]
---

# Update Table

`PATCH /workspaces/{workspace_id}/tables/{table_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/workspaces/{workspace_id}/tables/{table_id}`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Update table metadata.

## Path parameters

- `table_id` string, uuid, required
- `workspace_id` string, uuid, required

## Request body

- TableUpdate: Update model for a table.
  - `name` string, nullable: The name of the table

## Response `200`

Successful Response

- TableRead: Read model for a table.
  - `id` string, uuid, required
  - `name` string, required
  - `columns` TableColumnRead[], required
    - `id` string, uuid, required
    - `name` string, required
    - `type` 'TEXT' | 'INTEGER' | 'NUMERIC' | 'DATE' | 'BOOLEAN' | 'TIMESTAMPTZ' | 'JSONB' | 'SELECT' | 'MULTI_SELECT', required: Supported SQL types.
    - `nullable` boolean
    - `default` unknown
    - `is_index` boolean
    - `options` string[], nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
