Syndai Docs

Upload a knowledge file

POST
/api/v1/external/coding/repos/{coding_repository_id}/knowledge/uploads

Upload one file (markdown, text, PDF, Word or HTML) or a zip of them, base64 in JSON, up to 10 MB. Each file 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

Query Parameters

customer_id?|null

Request Body

application/json
  1. body
content_base64*string
Length1 <= length <= 13981021
name*string
Length1 <= length <= 255

Response Body

Request fulfilled, document follows

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