Syndai Docs

Compare a synced folder

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

syndai sync: send every file of the folder as {path, sha256}. The answer lists the paths that are new or changed; files gone from the folder are deleted with their text. A paused folder is a 409. 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 <= 20000

Response Body

Request fulfilled, document follows

application/json
  1. response
need*array<string>
removed*integer
source_id*string
Formatuuid
Example Request
curl -X POST 'https://api.syndai.ai/api/v1/external/coding/repos/497f6eca-6276-4993-bfeb-53cbbbba6f08/knowledge/folders/string/manifest' \  -H 'Content-Type: application/json' \  -d '{  "files": [    {      "path": "string",      "sha256": "string"    }  ]}'
Example Response
{  "need": [    "string"  ],  "removed": 0,  "source_id": "ae50a35c-df42-4eff-ba26-f8bc28d2af81"}
Was this page helpful?