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

# Update table

`PATCH /tables/{table_id}`

## Request

- Base URL: `https://api.pdfparse.net/v1`
- URL: `https://api.pdfparse.net/v1/tables/{table_id}`
- Auth: HTTP bearer

## Path parameters

- `table_id` string, required

## Headers

- `Idempotency-Key` string: Scopes replay protection to the authenticated project, method, and route for 24 hours.

## Request body

- object
  - `name` string
  - `columns` object[]
    - `name` string, required
    - `prompt` string, required
    - `primaryKey` boolean
    - `unique` boolean
    - `autoIncrement` boolean
    - `nullable` boolean
    - `reanalyzeExisting` boolean
    - `type` 'text' | 'number' | 'date' | 'boolean' | 'foreign_key'
    - `referencedTable` string
    - `referencedColumn` string
    - `parentTable` string

## Response `200`

Success

- object

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Workflow error

---

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