---
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

---

[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/6fb7730a430d/schema)
