Syndai Docs

Push changed folder files

POST
/api/v1/external/coding/repos/{coding_repository_id}/knowledge/folders/{name}/files

syndai sync: changed notes as text, and attachments (up to 10 MB) by name only. Each is indexed now; one that can't be read comes back with its reason. Requires coding:knowledge:sync.

Authorization

CustomerApiKey
headerAuthorizationBearer <API Key>

Customer API key sent as a bearer token

Path Parameters

coding_repository_id*string
Formatuuid
name*string

Query Parameters

customer_id?|null

Request Body

application/json
  1. body
files*array<>
Itemsitems <= 500

Response Body

Request fulfilled, document follows

application/json
  1. response
failed*array<>
indexed*integer
linked*integer
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge/folders/string/files' \  -H 'Content-Type: application/json' \  -d '{  "files": [    {      "bytes": 0,      "path": "string",      "sha256": "string"    }  ]}'
Example Response
{  "failed": [    {      "error": "string",      "path": "string"    }  ],  "indexed": 0,  "linked": 0}
Was this page helpful?