Skip to content
Home

Resync data source

Trigger a re-sync of an existing link-based knowledge base data source. This will queue the source for re-crawling so the AI Agent picks up the latest content from the URL.

Note: Re-syncing is only supported for link-type sources. Text sources can be updated by deleting and re-adding them.

POST/knowledge-base/resync-data-source

Body

source_idstringrequired

The UUID of the data source to re-sync. Must belong to your project.

Headers

Authorizationstringrequired

Your API Key formatted as Bearer sk_live_…

Returns the updated data source object with status reset to pending, indicating the re-crawl has been queued.

Terminal window
curl -X POST https://app.picobot.dev/api/knowledge-base/resync-data-source \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"source_id": "ds-0001-0000-0000-0000-000000000001"}'
{
"data": {
"id": "ds-0001-0000-0000-0000-000000000001",
"type": "link",
"url": "https://yoursite.com/help",
"status": "pending",
"error_message": null
}
}