---
title: "Sync fields with data"
method: POST
path: "/tables/fields/{dbId}/{tableId}/sync"
tags: ["Data Dictionary"]
---

# Sync fields with data

`POST /tables/fields/{dbId}/{tableId}/sync`

Synchronize field definitions with actual data. Removes fields that don't exist in the data and adds new fields found in the data.

## Path parameters

- `dbId` string, required
- `tableId` string, required

## Response `200`

successful operation

- object
  - `status` string
  - `fields_removed` integer — Number of fields removed (not in data)
  - `fields_added` integer — Number of new fields added (found in data)
  - `message` string

## Changes

- **2025-12-01** `c9fac12336ea` — 1 info
  - endpoint added
- **2023-12-21** `1451f79c7f04` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ihsn/apis/data-tables/changes/tables/fields/:dbId/:tableId/sync/post.md)

---

[API](https://skmtc.dev/ihsn/apis/data-tables.md) · [All operations](https://skmtc.dev/ihsn/apis/data-tables/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ihsn/data-tables/revisions/c9fac12336ea/schema)
