Zum Inhalt springen

Trigger source sync

POST
/api/sources/{sourceId}/sync
curl --request POST \
--url https://firma.company-gpt.com/companygpt/rag/api/api/sources/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/sync \
--header 'Authorization: Bearer <token>'

Manually trigger synchronization from this data source. Requires write access to its collection (or, for orphaned sources, being the creator).

sourceId
required
string format: uuid

Sync job queued

Media typeapplication/json
object
message
required
string
Example
{
"message": "Sync job queued successfully"
}

Invalid source ID

Unauthorized

Caller does not have permission to sync this source

Source not found

A sync is already in progress for this source