Skip to main content
PUT
/
api
/
content
/
sources
/
{id}
/
config
Update source config and trigger sync
curl --request PUT \
  --url https://api.tedro.io/api/content/sources/{id}/config \
  --header 'Content-Type: application/json' \
  --header 'x-workspace-id: <api-key>' \
  --cookie better-auth.session_token= \
  --data '
{
  "pageIds": [
    "<string>"
  ],
  "fileIds": [
    "<string>"
  ],
  "folderIds": [
    "<string>"
  ],
  "syncIntervalMs": 304200000
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "type": "<string>",
  "name": "<string>",
  "config": {},
  "syncStatus": "<string>",
  "createdAt": "<string>",
  "updatedAt": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.tedro.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

better-auth.session_token
string
cookie
required

Session cookie set by Better Auth on sign-in.

x-workspace-id
string
header
required

Workspace UUID. Required on all /api/* endpoints.

Path Parameters

id
string<uuid>
required

Body

application/json

Update provider-specific source config (Notion pages / Google file + folder IDs / sync interval).

pageIds
string[]
fileIds
string[]
folderIds
string[]
syncIntervalMs
integer
Required range: 3600000 <= x <= 604800000

Response

Source config updated and sync enqueued

id
string<uuid>
required
workspaceId
string<uuid>
required
type
string
required
name
string
required
config
object
required
syncStatus
string
required
createdAt
string
required
updatedAt
string
required
{key}
any