The sync configuration API lets you inspect and update the Feishu data sync scheduler without restarting the server. You can read the current cron schedule, toggle the scheduler on or off, and change which tables are synced by default. All changes take effect immediately via hot-reload.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/HNU-himematsu/HNU-TimeLetter/llms.txt
Use this file to discover all available pages before exploring further.
SyncTableKey reference
EachSyncTableKey value maps to a Feishu Bitable table and writes to a specific JSON output file read by the frontend runtime API.
| Key | Feishu Table | Output File |
|---|---|---|
locations | 地点表 | src/config/locations.json |
stories | 故事表 | src/data/content.json |
creation_headers | 创作板-头表 | src/data/creation-board-headers.json |
creation_board | 创作板-主表 | src/data/creation-board.json |
contributors | 参与贡献名单 | src/data/contributors.json |
GET /api/admin/sync/config
Returns the current scheduler configuration, runtime state, available table definitions, and next scheduled run time. Authentication:admin_auth cookie required. Returns 401 Unauthorized if absent or invalid.
Response fields
Persisted scheduler configuration.
Live scheduler state — updated as jobs run.
All tables the system supports. Use the
key values when setting defaultTables or creating jobs.ISO 8601 timestamp of when the scheduler will next fire.
null when config.enabled is false.Example response
curl example
PATCH /api/admin/sync/config
Updates one or more scheduler settings. All fields are optional — only include the fields you want to change. The scheduler is hot-reloaded immediately; no server restart is required. Authentication:admin_auth cookie required.
Request body
Set to
true to activate the cron scheduler, false to pause it. Omit to leave unchanged.A valid cron expression with at least 5 space-separated segments (e.g.
"0 */6 * * *" for every 6 hours). Omit to leave unchanged.Replaces the full list of tables synced by the scheduler. Must contain at least one valid
SyncTableKey — an empty array is rejected with 400. Omit to leave unchanged.Responses
200 OK — Returns the same structure as GET /api/admin/sync/config, reflecting the updated state.
400 Bad Request — Returned when an unrecognised table key is supplied or the cron expression is malformed.
401 Unauthorized — Missing or invalid admin_auth cookie.