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-sourceRequest parameters
Section titled “Request parameters”Body
source_idstringrequiredThe UUID of the data source to re-sync. Must belong to your project.
Headers
AuthorizationstringrequiredYour API Key formatted as Bearer sk_live_…
Response
Section titled “Response”Returns the updated data source object with status reset to pending, indicating the re-crawl has been queued.
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"}'fetch('https://app.picobot.dev/api/knowledge-base/resync-data-source', { method: 'POST', headers: { 'Authorization': 'Bearer <token>', 'Content-Type': 'application/json' }, body: JSON.stringify({ source_id: 'ds-0001-0000-0000-0000-000000000001' })}).then(res => res.json()).then(console.log);import requests
headers = { "Authorization": "Bearer <token>" }response = requests.post( "https://app.picobot.dev/api/knowledge-base/resync-data-source", headers=headers, json={"source_id": "ds-0001-0000-0000-0000-000000000001"})print(response.json()){ "data": { "id": "ds-0001-0000-0000-0000-000000000001", "type": "link", "url": "https://yoursite.com/help", "status": "pending", "error_message": null }}