---
title: "Update a data source's sync schedule"
method: PUT
path: "/external/v1/table/{table_uuid}/sources/{source_id}"
tags: ["Table"]
---

# Update a data source's sync schedule

`PUT /external/v1/table/{table_uuid}/sources/{source_id}`

## 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}`
- Auth: API key in header `x-apikey`

## Path parameters

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

## Request body

- UpdateScheduleIn: Update a connected crm source's sync schedule.
  - `schedule` object, required: Sync config, e.g. {"cron_string": "0 12 * * *", "rows": 200, "overwrite": true}.

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