---
title: "Update a data table"
method: PATCH
path: "/tables/{id}"
tags: ["Tables"]
---

# Update a data table

`PATCH /tables/{id}`

## Request

- Base URL: `https://workflow.loopfour.ai/api/v1`
- URL: `https://workflow.loopfour.ai/api/v1/tables/{id}`
- Auth: API key in header `x-api-key`

Updates table metadata, columns, or settings.

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `description` string
  - `columns` object[]
  - `schema` object
  - `metadata` object
  - `maxRows` number

## Response `200`

Success

- object
  - `success` unknown
  - `data` DataTable
    - `id` string
    - `name` string
    - `description` string, nullable
    - `columns` object[]
      - `id` string
      - `name` string
      - `type` 'text' | 'number' | 'boolean' | 'date' | 'select' | 'url' | 'email' | 'json'
    - `schema` object, nullable
    - `metadata` object, nullable
    - `maxRows` number
    - `rowCount` number
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400`: Bad request — invalid parameters or request body.
- `401`: Missing or invalid API key.
- `403`: Forbidden — insufficient permissions for this resource.
- `404`: Resource not found.

---

[API](https://skmtc.dev/loopfour/apis/loopfour-workflows-api.md) - [All operations](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/llms.txt) - [OpenAPI document](https://skmtc.dev/loopfour/apis/loopfour-workflows-api/revisions/872822a3af00?raw)
