---
title: "Map webhook JSONPath fields to table columns"
method: POST
path: "/external/v1/table/{table_uuid}/sources/{source_id}/webhook-mapping"
tags: ["Table"]
---

# Map webhook JSONPath fields to table columns

`POST /external/v1/table/{table_uuid}/sources/{source_id}/webhook-mapping`

## Request

- Base URL: `https://api.databar.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.databar.ai/external/v1/table/{table_uuid}/sources/{source_id}/webhook-mapping`
- Auth: API key in header `x-apikey`

## Path parameters

- `table_uuid` string, uuid, required
- `source_id` integer, required

## Request body

- WebhookMappingIn
  - `mapping` object, required: JSONPath → column UUID or "-". Keys come from GET .../webhook-fields.
  - `use_datetime_field` boolean: Also add a Created_at datetime column.

## Response `200`

OK

- DataSourceOut: Read shape for a table data source returned by the External API. The field set matches ``tables.services.table_source.serialize_source`` (the shared plain serializer the MCP also returns). The internal app has its own DRF ``TableSourceSerializer`` for the UI and is deliberately NOT coupled to this schema — the UI and API/MCP can diverge if their needs differ.
  - `id` integer, required
  - `source_type` string, required
  - `source_type_display` string, nullable
  - `status` string, required
  - `status_display` string, nullable
  - `dataset_id` integer, nullable
  - `webhook_id` integer, nullable
  - `webhook_identifier` string, nullable
  - `webhook_based_integration` string, nullable
  - `webhook_url` string, nullable
  - `webhook_mode` string, nullable
  - `schedule_task_id` integer, nullable
  - `error_message` string, nullable
  - `name` string, nullable
  - `logo` string, nullable
  - `records_count` integer, nullable
  - `last_synced_at` string, nullable
  - `created_at` string, nullable
  - `updated_at` string, nullable

---

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